]>
Commit | Line | Data |
---|---|---|
727ce158 | 1 | # Makefile for The PCI Library |
a27a33dd | 2 | # (c) 1999 Martin Mares <mj@ucw.cz> |
727ce158 MM |
3 | |
4 | include config.mk | |
5 | ||
3430bafe | 6 | OBJS=access.o generic.o dump.o names.o filter.o |
727ce158 MM |
7 | INCL=internal.h pci.h config.h |
8 | ||
848b4347 MM |
9 | PCILIB=libpci.a |
10 | ||
727ce158 MM |
11 | ifdef HAVE_PM_LINUX_PROC |
12 | OBJS += proc.o | |
13 | endif | |
14 | ||
15 | ifdef HAVE_PM_INTEL_CONF | |
16 | OBJS += i386-ports.o | |
17 | endif | |
18 | ||
19 | ifdef HAVE_PM_DUMP | |
20 | OBJS += dump.o | |
21 | endif | |
22 | ||
23 | ifdef HAVE_PM_SYSCALLS | |
24 | OBJS += syscalls.o | |
25 | endif | |
26 | ||
168b4f46 MM |
27 | ifdef HAVE_PM_FBSD_DEVICE |
28 | OBJS += fbsd-device.o | |
29 | CFLAGS += -I/usr/src/sys | |
30 | endif | |
31 | ||
14d6c0a3 MM |
32 | ifdef HAVE_PM_AIX_DEVICE |
33 | OBJS += aix-device.o | |
34 | endif | |
35 | ||
848b4347 MM |
36 | ifdef HAVE_PM_NBSD_LIBPCI |
37 | OBJS += nbsd-libpci.o | |
38 | PCILIB=libpciutils.a | |
39 | endif | |
40 | ||
727ce158 MM |
41 | ifdef HAVE_OWN_HEADER_H |
42 | INCL += header.h | |
43 | endif | |
44 | ||
848b4347 | 45 | all: $(PCILIB) |
727ce158 | 46 | |
848b4347 | 47 | $(PCILIB): $(OBJS) |
727ce158 MM |
48 | rm -f $@ |
49 | ar rcs $@ $^ | |
50 | ranlib $@ | |
51 | ||
52 | access.o: access.c $(INCL) | |
53 | i386-ports.o: i386-ports.c $(INCL) | |
54 | proc.o: proc.c $(INCL) | |
55 | generic.o: generic.c $(INCL) | |
56 | syscalls.o: syscalls.c $(INCL) | |
168b4f46 | 57 | fbsd-device.o: fbsd-device.c $(INCL) |
14d6c0a3 | 58 | aix-device.o: aix-device.c $(INCL) |
727ce158 MM |
59 | dump.o: dump.c $(INCL) |
60 | names.o: names.c $(INCL) | |
61 | filter.o: filter.c $(INCL) | |
848b4347 | 62 | nbsd-libpci.o: nbsd-libpci.c $(INCL) |