2016-01-11 20:37:43 +01:00
|
|
|
$NetBSD: patch-aa,v 1.5 2016/01/11 19:37:43 leot Exp $
|
2005-05-24 16:08:43 +02:00
|
|
|
|
2016-01-11 20:37:43 +01:00
|
|
|
o Turn off optimizations present in DEBUG
|
|
|
|
o Link against (generic) curses
|
|
|
|
o Honors user's CFLAGS and LDFLAGS
|
|
|
|
|
|
|
|
--- Makefile.orig 2016-01-11 18:19:51.000000000 +0000
|
2013-10-17 18:24:11 +02:00
|
|
|
+++ Makefile
|
2016-01-11 20:37:43 +01:00
|
|
|
@@ -8,18 +8,18 @@ VERS=1.14
|
2003-06-02 16:09:48 +02:00
|
|
|
|
2016-01-11 20:37:43 +01:00
|
|
|
# Use -g to compile the program for debugging.
|
|
|
|
#DEBUG = -g -DDEBUG
|
2003-06-02 16:09:48 +02:00
|
|
|
-DEBUG = -O2
|
|
|
|
+#DEBUG = -O2
|
|
|
|
|
|
|
|
# Use -p to profile the program.
|
|
|
|
#PROFILE = -p -DPROFILE
|
2013-10-17 18:24:11 +02:00
|
|
|
PROFILE =
|
|
|
|
|
|
|
|
-LIBS = -lncurses
|
|
|
|
+LIBS = -lcurses
|
2003-06-02 16:09:48 +02:00
|
|
|
|
|
|
|
# You shouldn't have to modify anything below this line.
|
|
|
|
|
2016-01-11 20:37:43 +01:00
|
|
|
# There's a dynamic format in the object-display routines; suppress the warning
|
|
|
|
-CFLAGS = $(DEBUG) $(PROFILE) -Wall -Wno-format-security
|
|
|
|
+CFLAGS += $(DEBUG) $(PROFILE) -Wall -Wno-format-security
|
2003-06-02 16:09:48 +02:00
|
|
|
|
|
|
|
FILES = \
|
|
|
|
attack.c \
|
2016-01-11 20:37:43 +01:00
|
|
|
@@ -58,7 +58,7 @@ OFILES = \
|
2003-06-02 16:09:48 +02:00
|
|
|
all: vms-empire
|
|
|
|
|
|
|
|
vms-empire: $(OFILES)
|
|
|
|
- $(CC) $(PROFILE) -o vms-empire $(OFILES) $(LIBS)
|
|
|
|
+ $(CC) $(PROFILE) -o vms-empire $(OFILES) $(LIBS) $(LDFLAGS)
|
|
|
|
|
2016-01-11 20:37:43 +01:00
|
|
|
attack.o:: extern.h empire.h
|
|
|
|
compmove.o:: extern.h empire.h
|