# pentix make file CC ?= cc CFLAGS ?= -O -pipe LFLAGS = -lncurses BINDIR = ${PREFIX}/bin DATDIR = ${PREFIX}/share/games/pentix MANDIR = ${PREFIX}/man/man1 PROG = pentix DATA = pentix.qtn pentix.res readme.txt MAN1 = pentix.1 SRCS = main.c misc.c shapes.c OBJS = main.o misc.o shapes.o $(PROG): $(OBJS) $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LFLAGS) $(OBJS): defs.h all: $(INSTALL) install: $(PROG) 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: rm -f $(OBJS) $(PROG)