Root/pmars/patches/001-remove-static-define-in-makefile.patch

1diff --git a/src/Makefile b/src/Makefile
2index 99c00bb..0630be1 100644
3--- a/src/Makefile
4+++ b/src/Makefile
5@@ -1,5 +1,5 @@
6 # generic UNIX makefile
7-CC = gcc # req. for linux
8+#CC = gcc # req. for linux
9 #CC = cc # if you don't have gcc
10 # Configuration options:
11 #
12@@ -16,11 +16,12 @@ CC = gcc # req. for linux
13 # (6) -DXWINGRAPHX 1 X-Windows graphics (UNIX)
14 # (7) -DPERMUTATE enables -P switch
15 
16-CFLAGS = -O -DEXT94 -DXWINGRAPHX -DPERMUTATE
17+CFLAGS := $(CFLAGS) -O -DEXT94 -DPERMUTATE -DCURSESGRAPHX
18 LFLAGS = -x
19-# LIB = -lcurses -ltermlib # enable this one for curses display
20+# LIB = -lncurses -ltermlib # enable this one for curses display
21+LIB = -lncurses
22 # LIB = -lvgagl -lvga # enable this one for Linux/SVGA
23-LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11
24+# LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11
25 
26 .SUFFIXES: .o .c .c~ .man .doc .6
27 MAINFILE = pmars
28@@ -37,8 +38,8 @@ flags:
29 
30 $(MAINFILE): $(OBJ1) $(OBJ2) $(OBJ3)
31     @echo Linking $(MAINFILE)
32- @$(CC) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB)
33- @strip $(MAINFILE)
34+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB)
35+ $(STRIP) $(MAINFILE)
36     @echo done
37 
38 token.o asm.o disasm.o: asm.h
39

Archive Download this file



interactive