1727ce158SMartin Mares# Makefile for The PCI Library 2a27a33ddSMartin Mares# (c) 1999 Martin Mares <[email protected]> 3727ce158SMartin Mares 4727ce158SMartin Maresinclude config.mk 5727ce158SMartin Mares 63430bafeSMartin MaresOBJS=access.o generic.o dump.o names.o filter.o 7*489233b4SMartin MaresINCL=internal.h pci.h config.h header.h sysdep.h types.h 8727ce158SMartin Mares 9848b4347SMartin MaresPCILIB=libpci.a 10848b4347SMartin Mares 11*489233b4SMartin Maresifdef PCI_HAVE_PM_LINUX_SYSFS 1211f7b31bSMartin MaresOBJS += sysfs.o 1311f7b31bSMartin Maresendif 1411f7b31bSMartin Mares 15*489233b4SMartin Maresifdef PCI_HAVE_PM_LINUX_PROC 16727ce158SMartin MaresOBJS += proc.o 17727ce158SMartin Maresendif 18727ce158SMartin Mares 19*489233b4SMartin Maresifdef PCI_HAVE_PM_INTEL_CONF 20727ce158SMartin MaresOBJS += i386-ports.o 21727ce158SMartin Maresendif 22727ce158SMartin Mares 23*489233b4SMartin Maresifdef PCI_HAVE_PM_DUMP 24727ce158SMartin MaresOBJS += dump.o 25727ce158SMartin Maresendif 26727ce158SMartin Mares 27*489233b4SMartin Maresifdef PCI_HAVE_PM_SYSCALLS 28727ce158SMartin MaresOBJS += syscalls.o 29727ce158SMartin Maresendif 30727ce158SMartin Mares 31*489233b4SMartin Maresifdef PCI_HAVE_PM_FBSD_DEVICE 32168b4f46SMartin MaresOBJS += fbsd-device.o 33168b4f46SMartin MaresCFLAGS += -I/usr/src/sys 3445902995SMartin Maresifdef FREEBSD_SYS 3545902995SMartin MaresCFLAGS += -I${FREEBSD_SYS} 3645902995SMartin Maresendif 37168b4f46SMartin Maresendif 38168b4f46SMartin Mares 39*489233b4SMartin Maresifdef PCI_HAVE_PM_AIX_DEVICE 4014d6c0a3SMartin MaresOBJS += aix-device.o 4114d6c0a3SMartin Maresendif 4214d6c0a3SMartin Mares 43*489233b4SMartin Maresifdef PCI_HAVE_PM_NBSD_LIBPCI 44848b4347SMartin MaresOBJS += nbsd-libpci.o 45848b4347SMartin MaresPCILIB=libpciutils.a 46848b4347SMartin Maresendif 47848b4347SMartin Mares 48848b4347SMartin Maresall: $(PCILIB) 49727ce158SMartin Mares 50848b4347SMartin Mares$(PCILIB): $(OBJS) 51727ce158SMartin Mares rm -f $@ 52727ce158SMartin Mares ar rcs $@ $^ 53727ce158SMartin Mares ranlib $@ 54727ce158SMartin Mares 55727ce158SMartin Maresaccess.o: access.c $(INCL) 5611f7b31bSMartin Maresi386-ports.o: i386-ports.c $(INCL) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h 5711f7b31bSMartin Maresproc.o: proc.c $(INCL) pread.h 5811f7b31bSMartin Maressysfs.o: sysfs.c $(INCL) pread.h 59727ce158SMartin Maresgeneric.o: generic.c $(INCL) 60727ce158SMartin Maressyscalls.o: syscalls.c $(INCL) 61168b4f46SMartin Maresfbsd-device.o: fbsd-device.c $(INCL) 6214d6c0a3SMartin Maresaix-device.o: aix-device.c $(INCL) 63727ce158SMartin Maresdump.o: dump.c $(INCL) 64727ce158SMartin Maresnames.o: names.c $(INCL) 65727ce158SMartin Maresfilter.o: filter.c $(INCL) 66848b4347SMartin Maresnbsd-libpci.o: nbsd-libpci.c $(INCL) 67