X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2FMakefile;h=8b43b7ef3096fd685c0d57b633db4632e96dfd27;hb=239ff18adf556b63a16be968725ba9fd0e6d5227;hp=5c6c586a049c33ccbb826199f9470330aa9583de;hpb=168b4f4612e4524fe68cacbd036df01cdbdbd007;p=pciutils.git diff --git a/lib/Makefile b/lib/Makefile index 5c6c586..8b43b7e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,12 +1,14 @@ -# $Id: Makefile,v 1.3 1999/07/20 14:01:27 mj Exp $ +# $Id: Makefile,v 1.6 2002/12/26 19:28:33 mj Exp $ # Makefile for The PCI Library -# (c) 1999 Martin Mares +# (c) 1999 Martin Mares 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 @@ -28,13 +30,22 @@ OBJS += fbsd-device.o CFLAGS += -I/usr/src/sys endif +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 $@ @@ -45,6 +56,8 @@ proc.o: proc.c $(INCL) generic.o: generic.c $(INCL) syscalls.o: syscalls.c $(INCL) fbsd-device.o: fbsd-device.c $(INCL) +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)