diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-08-14 12:24:32 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-08-14 12:24:32 +0000 |
commit | 15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f (patch) | |
tree | 19a035a38118abb2f293364c848a86ad4bcc6e6a /Makefile | |
parent | b0d7d63bb12ea5fe49184389fdd5b68381f74202 (diff) | |
download | ldetect-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 $< $@ |