1 # Makefile for The PCI Library
2 # (c) 1999 Martin Mares <mj@ucw.cz>
6 OBJS
=access.o generic.o dump.o names.o
filter.o
7 INCL
=internal.h pci.h config.h header.h sysdep.h types.h
11 ifdef PCI_HAVE_PM_LINUX_SYSFS
15 ifdef PCI_HAVE_PM_LINUX_PROC
19 ifdef PCI_HAVE_PM_INTEL_CONF
23 ifdef PCI_HAVE_PM_DUMP
27 ifdef PCI_HAVE_PM_SYSCALLS
31 ifdef PCI_HAVE_PM_FBSD_DEVICE
33 CFLAGS
+= -I
/usr
/src
/sys
35 CFLAGS
+= -I
${FREEBSD_SYS}
39 ifdef PCI_HAVE_PM_OBSD_DEVICE
43 ifdef PCI_HAVE_PM_AIX_DEVICE
47 ifdef PCI_HAVE_PM_NBSD_LIBPCI
59 access.o
: access.c
$(INCL
)
60 i386-ports.o
: i386-ports.c
$(INCL
) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h
61 proc.o
: proc.c
$(INCL
) pread.h
62 sysfs.o
: sysfs.c
$(INCL
) pread.h
63 generic.o
: generic.c
$(INCL
)
64 syscalls.o
: syscalls.c
$(INCL
)
65 fbsd-device.o
: fbsd-device.c
$(INCL
)
66 aix-device.o
: aix-device.c
$(INCL
)
67 dump.o
: dump.c
$(INCL
)
68 names.o
: names.c
$(INCL
)
69 filter.o
: filter.c
$(INCL
)
70 nbsd-libpci.o
: nbsd-libpci.c
$(INCL
)
72 example
: example.c
$(PCILIB
)