X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2FMakefile;h=8b43b7ef3096fd685c0d57b633db4632e96dfd27;hb=239ff18adf556b63a16be968725ba9fd0e6d5227;hp=9fcbf59895f0efc7a6ea4e24e9f1b439453fd520;hpb=a27a33dde338ab9d809bebbade328559eaae733b;p=pciutils.git diff --git a/lib/Makefile b/lib/Makefile index 9fcbf59..8b43b7e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.5 2002/03/30 15:39:25 mj Exp $ +# $Id: Makefile,v 1.6 2002/12/26 19:28:33 mj Exp $ # Makefile for The PCI Library # (c) 1999 Martin Mares @@ -7,6 +7,8 @@ include config.mk OBJS=access.o generic.o dump.o names.o filter.o INCL=internal.h pci.h config.h +PCILIB=libpci.a + ifdef HAVE_PM_LINUX_PROC OBJS += proc.o endif @@ -32,13 +34,18 @@ ifdef HAVE_PM_AIX_DEVICE OBJS += aix-device.o endif +ifdef HAVE_PM_NBSD_LIBPCI +OBJS += nbsd-libpci.o +PCILIB=libpciutils.a +endif + ifdef HAVE_OWN_HEADER_H INCL += header.h endif -all: libpci.a +all: $(PCILIB) -libpci.a: $(OBJS) +$(PCILIB): $(OBJS) rm -f $@ ar rcs $@ $^ ranlib $@ @@ -53,3 +60,4 @@ aix-device.o: aix-device.c $(INCL) dump.o: dump.c $(INCL) names.o: names.c $(INCL) filter.o: filter.c $(INCL) +nbsd-libpci.o: nbsd-libpci.c $(INCL)