]> git.ipfire.org Git - thirdparty/pciutils.git/blame - lib/Makefile
Rewrote the pread/pwrite things once again. Use pread and pwrite only when we
[thirdparty/pciutils.git] / lib / Makefile
CommitLineData
3430bafe 1# $Id: Makefile,v 1.2 1999/01/24 21:35:35 mj Exp $
727ce158
MM
2# Makefile for The PCI Library
3# (c) 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
4
5include config.mk
6
3430bafe 7OBJS=access.o generic.o dump.o names.o filter.o
727ce158
MM
8INCL=internal.h pci.h config.h
9
10ifdef HAVE_PM_LINUX_PROC
11OBJS += proc.o
12endif
13
14ifdef HAVE_PM_INTEL_CONF
15OBJS += i386-ports.o
16endif
17
18ifdef HAVE_PM_DUMP
19OBJS += dump.o
20endif
21
22ifdef HAVE_PM_SYSCALLS
23OBJS += syscalls.o
24endif
25
26ifdef HAVE_OWN_HEADER_H
27INCL += header.h
28endif
29
30all: libpci.a
31
32libpci.a: $(OBJS)
33 rm -f $@
34 ar rcs $@ $^
35 ranlib $@
36
37access.o: access.c $(INCL)
38i386-ports.o: i386-ports.c $(INCL)
39proc.o: proc.c $(INCL)
40generic.o: generic.c $(INCL)
41syscalls.o: syscalls.c $(INCL)
42dump.o: dump.c $(INCL)
43names.o: names.c $(INCL)
44filter.o: filter.c $(INCL)