]> mj.ucw.cz Git - pciutils.git/blobdiff - Makefile
Omit the CVS/ directory when creating a distribution archive.
[pciutils.git] / Makefile
index 3960efb5e3e385925687ff2e65714875aef6bb39..c7abd0b16b822d7b7b89621152383445d52cf11c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,11 @@
-# $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
 
@@ -20,3 +17,10 @@ names.o: names.c pciutils.h
 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'