From 15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 14 Aug 2007 12:24:32 +0000 Subject: move objects list in lib_objs variable --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 336c57e..10527c0 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ libdir = $(prefix)/lib includedir = $(prefix)/include binaries = lspcidrake +lib_objs = common.o pciusb.o pci.o usb.o pciclass.o usbclass.o dmi.o lib_major = libldetect.so.$(LIB_MAJOR) libraries = libldetect.so $(lib_major) $(lib_major).$(LIB_MINOR) CFLAGS = -Wall -W -Wstrict-prototypes -Os -fPIC @@ -19,7 +20,7 @@ build: $(binaries) $(libraries) lspcidrake: lspcidrake.c libldetect.so -$(lib_major).$(LIB_MINOR): common.o pciusb.o pci.o usb.o pciclass.o usbclass.o dmi.o +$(lib_major).$(LIB_MINOR): $(lib_objs) $(CC) -shared -Wl,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz $(lib_major): $(lib_major).$(LIB_MINOR) ln -sf $< $@ -- cgit v1.2.1