1 # $Id: Makefile,v 1.4 1998/01/27 11:50:07 mj Exp $
2 # Makefile for Linux PCI Utilities
3 # (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
5 OPT=-O2 -fomit-frame-pointer
6 CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror
12 lspci: lspci.o names.o
14 lspci.o: lspci.c pciutils.h
15 names.o: names.c pciutils.h
18 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
22 install -o root -g root -m 755 -s lspci $(PREFIX)/sbin
23 install -o root -g root -m 644 pci.ids $(PREFIX)/etc
26 sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X --exclude CVS --exclude tmp'