-# $Id: Makefile,v 1.1 1997/12/23 10:29:18 mj Exp $
+# $Id: Makefile,v 1.3 1997/12/27 12:01:34 mj Exp $
# Makefile for Linux PCI Utilities
# (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-OPT=-O2 -m486 -malign-loops=0 -malign-jumps=0 -malign-functions=2 -fno-strength-reduce
-#-fomit-frame-pointer
-#LOPT=-s
-#DEBUG=-ggdb
-#LDEBUG=-lefence
-CFLAGS=$(OPT) $(DEBUG) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror
-LDFLAGS=$(LOPT) $(LDEBUG)
+OPT=-O2 -fomit-frame-pointer
+CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror
+
+PREFIX=/
all: lspci
clean:
rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
rm -f lspci
+
+install: all
+ install -o root -g root -m 755 -s lspci $(PREFIX)/sbin
+ install -o root -g root -m 644 pci.ids $(PREFIX)/etc
+
+dist: clean
+ sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X --exclude CVS'