-# $Id: Makefile,v 1.4 2000/04/21 11:58:00 mj Exp $
+# $Id: Makefile,v 1.6 2002/12/26 19:28:33 mj Exp $
# Makefile for The PCI Library
-# (c) 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+# (c) 1999 Martin Mares <mj@ucw.cz>
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
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 $@
dump.o: dump.c $(INCL)
names.o: names.c $(INCL)
filter.o: filter.c $(INCL)
+nbsd-libpci.o: nbsd-libpci.c $(INCL)