--- Makefile.orig Sat Sep 23 14:14:43 2000 +++ Makefile Sun Oct 19 02:22:03 2003 @@ -1,12 +1,12 @@ # pentix make file -CC = cc -CFLAGS = -O2 -Wall +CC ?= cc +CFLAGS ?= -O -pipe LFLAGS = -lncurses -BINDIR = /usr/local/bin -DATDIR = /usr/local/share/games/pentix -MANDIR = /usr/local/man/man1 +BINDIR = ${PREFIX}/bin +DATDIR = ${PREFIX}/share/games/pentix +MANDIR = ${PREFIX}/man/man1 PROG = pentix DATA = pentix.qtn pentix.res readme.txt @@ -23,10 +23,10 @@ all: $(INSTALL) install: $(PROG) - install -c -s -o bin -g bin -m 755 $(PROG) $(BINDIR) - install -d -o bin -g bin -m 755 $(DATDIR) - install -c -o bin -g bin -m 666 $(DATA) $(DATDIR) - install -c -o bin -g bin -m 644 $(MAN1) $(MANDIR) + install -c -s -o root -g games -m 2755 $(PROG) $(BINDIR) + install -d -o root -g games -m 755 $(DATDIR) + install -c -o root -g games -m 664 $(DATA) $(DATDIR) + install -c -o root -g games -m 644 $(MAN1) $(MANDIR) # Cleanup procedure clean: