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