X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2FMakefile;h=18fff3a9df7de4e1d624a7752a14169c6bbdc4d4;hb=3b75e19aae5e7d9da0754134aaad211cdf8f60d2;hp=9751eb5b1376ba59d2c614fd2133285eab017e04;hpb=5670e4275fb3f1cfb8b22bd8028b5725d5d0af41;p=pciutils.git diff --git a/lib/Makefile b/lib/Makefile index 9751eb5..18fff3a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,9 +1,9 @@ # Makefile for The PCI Library -# (c) 1999 Martin Mares +# (c) 1999--2008 Martin Mares include config.mk -OBJS=access.o generic.o dump.o names.o filter.o +OBJS=init.o access.o generic.o dump.o names.o filter.o names-hash.o names-parse.o names-net.o names-cache.o params.o INCL=internal.h pci.h config.h header.h sysdep.h types.h PCILIB=libpci.a @@ -25,10 +25,6 @@ ifdef PCI_HAVE_PM_DUMP OBJS += dump.o endif -ifdef PCI_HAVE_PM_SYSCALLS -OBJS += syscalls.o -endif - ifdef PCI_HAVE_PM_FBSD_DEVICE OBJS += fbsd-device.o CFLAGS += -I/usr/src/sys @@ -54,8 +50,8 @@ all: $(PCILIB) $(PCILIBPC) $(PCILIB): $(OBJS) rm -f $@ - ar rcs $@ $^ - ranlib $@ + $(AR) rcs $@ $^ + $(RANLIB) $@ $(PCILIBPC): $(PCILIBPC).in sed <$< >$@ -e 's,@PREFIX@,$(PREFIX),' \ @@ -63,10 +59,12 @@ $(PCILIBPC): $(PCILIBPC).in -e 's,@LIBDIR@,$(LIBDIR),' \ -e 's,@IDSDIR@,$(IDSDIR),' \ -e 's,@VERSION@,$(VERSION),' \ - -e 's,@LIBZ@,$(LIBZ),' + -e 's,@LDLIBS@,$(LDLIBS),' +init.o: init.c $(INCL) access.o: access.c $(INCL) -i386-ports.o: i386-ports.c $(INCL) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h +params.o: params.c $(INCL) +i386-ports.o: i386-ports.c $(INCL) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h i386-io-windows.h proc.o: proc.c $(INCL) pread.h sysfs.o: sysfs.c $(INCL) pread.h generic.o: generic.c $(INCL) @@ -75,7 +73,11 @@ obsd-device.o: obsd-device.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) +names.o: names.c $(INCL) names.h +names-cache.o: names-cache.c $(INCL) names.h +names-hash.o: names-hash.c $(INCL) names.h +names-net.o: names-net.c $(INCL) names.h +names-parse.o: names-parse.c $(INCL) names.h filter.o: filter.c $(INCL) nbsd-libpci.o: nbsd-libpci.c $(INCL)