--- Makefile.orig 1997-10-27 07:15:08.000000000 +0800 +++ Makefile 2014-06-07 23:36:53.767950530 +0800 @@ -2,12 +2,13 @@ TARGET = ladder SRCS = ladder.c lplay.c ltime.c lscore.c lscreens.c OBJS = ladder.o lplay.o ltime.o lscore.o lscreens.o -CC = gcc -CFLAGS = -O -pedantic -I/usr/include/ncurses +CC ?= gcc +CFLAGS ?= -O +CFLAGS += -pedantic -Wall LDFLAGS = -s M4 = m4 LIBS = -lncurses -SCOREFILE = ./ladder.scores +SCOREFILE = /var/games/ladder.scores .SUFFIXES: .o .c .m4 @@ -22,6 +23,14 @@ $(TARGET): $(OBJS) $(OBJS): ladder.h +clean: + -$(RM) $(OBJS) $(TARGET) *.core + +all: $(TARGET) + +install: + $(BSD_INSTALL_PROGRAM) ladder $(DESTDIR)${PREFIX}/bin + # ladder.c: ladder.m4 # lscreens.c: lscreens.m4