]> mj.ucw.cz Git - pciutils.git/blob - Makefile
40a4379458dbfd2fcd0b4ceeba78f55d0061e882
[pciutils.git] / Makefile
1 # $Id: Makefile,v 1.2 1997/12/27 11:57:11 mj Exp $
2 # Makefile for Linux PCI Utilities
3 # (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
4
5 OPT=-O2 -fomit-frame-pointer
6 CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror
7
8 PREFIX=/
9
10 all: lspci
11
12 lspci: lspci.o names.o
13
14 lspci.o: lspci.c pciutils.h
15 names.o: names.c pciutils.h
16
17 clean:
18         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
19         rm -f lspci
20
21 install: all
22         install -o root -g root -m 755 -s lspci $(PREFIX)/sbin
23         install -o root -g root -m 644 pci.ids $(PREFIX)/etc
24
25 dist: clean
26         sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X'