summaryrefslogtreecommitdiffstats
path: root/games/ladder/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/ladder/files/patch-Makefile')
-rw-r--r--games/ladder/files/patch-Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/games/ladder/files/patch-Makefile b/games/ladder/files/patch-Makefile
new file mode 100644
index 0000000..0b36462
--- /dev/null
+++ b/games/ladder/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- 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:
++ install -c -s -o root -g games -m 2555 ladder $(DESTDIR)${PREFIX}/bin
++
+ # ladder.c: ladder.m4
+
+ # lscreens.c: lscreens.m4
OpenPOWER on IntegriCloud