From 728ebc19e1d69670863e2911addb217709f40629 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 14 Aug 2007 12:25:04 +0000 Subject: build static library --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 10527c0..d2f26f6 100644 --- a/Makefile +++ b/Makefile @@ -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 $^ > $@ -- cgit v1.2.1