]> mj.ucw.cz Git - pciutils.git/blob - lib/Makefile
Rewrote the PCI Utilities. All PCI configuration space access has been
[pciutils.git] / lib / Makefile
1 # $Id: Makefile,v 1.1 1999/01/22 21:05:10 mj Exp $
2 # Makefile for The PCI Library
3 # (c) 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
4
5 include config.mk
6
7 OBJS=access.o generic.o dump.o names.o filter.o buffer.o
8 INCL=internal.h pci.h config.h
9
10 ifdef HAVE_PM_LINUX_PROC
11 OBJS += proc.o
12 endif
13
14 ifdef HAVE_PM_INTEL_CONF
15 OBJS += i386-ports.o
16 endif
17
18 ifdef HAVE_PM_DUMP
19 OBJS += dump.o
20 endif
21
22 ifdef HAVE_PM_SYSCALLS
23 OBJS += syscalls.o
24 endif
25
26 ifdef HAVE_OWN_HEADER_H
27 INCL += header.h
28 endif
29
30 all: libpci.a
31
32 libpci.a: $(OBJS)
33         rm -f $@
34         ar rcs $@ $^
35         ranlib $@
36
37 access.o: access.c $(INCL)
38 i386-ports.o: i386-ports.c $(INCL)
39 proc.o: proc.c $(INCL)
40 generic.o: generic.c $(INCL)
41 syscalls.o: syscalls.c $(INCL)
42 dump.o: dump.c $(INCL)
43 names.o: names.c $(INCL)
44 filter.o: filter.c $(INCL)