diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-08-14 12:25:04 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-08-14 12:25:04 +0000 |
commit | 728ebc19e1d69670863e2911addb217709f40629 (patch) | |
tree | 9592b9d0f6d6a980d02f1fb49edf75871614362d | |
parent | 15fc871ad75641ad1c7ce2a3ce8f5ad06ee1fd3f (diff) | |
download | ldetect-728ebc19e1d69670863e2911addb217709f40629.tar ldetect-728ebc19e1d69670863e2911addb217709f40629.tar.gz ldetect-728ebc19e1d69670863e2911addb217709f40629.tar.bz2 ldetect-728ebc19e1d69670863e2911addb217709f40629.tar.xz ldetect-728ebc19e1d69670863e2911addb217709f40629.zip |
build static library
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -11,7 +11,7 @@ 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) +libraries = libldetect.so $(lib_major) $(lib_major).$(LIB_MINOR) libldetect.a CFLAGS = -Wall -W -Wstrict-prototypes -Os -fPIC RPM ?= $(HOME)/rpm @@ -27,6 +27,10 @@ $(lib_major): $(lib_major).$(LIB_MINOR) libldetect.so: $(lib_major) ln -sf $< $@ +libldetect.a: $(lib_objs) + ar -cru $@ $^ + ranlib $@ + pciclass.c: /usr/include/linux/pci.h /usr/include/linux/pci_ids.h rm -f $@ perl generate_pciclass.pl $^ > $@ |