summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-14 12:24:32 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-14 12:24:32 +0000
commit15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f (patch)
tree19a035a38118abb2f293364c848a86ad4bcc6e6a /Makefile
parentb0d7d63bb12ea5fe49184389fdd5b68381f74202 (diff)
downloadldetect-15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f.tar
ldetect-15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f.tar.gz
ldetect-15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f.tar.bz2
ldetect-15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f.tar.xz
ldetect-15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f.zip
move objects list in lib_objs variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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 $< $@