2010-06-07 07:42:15 +03:00
|
|
|
diff --git a/src/Makefile b/src/Makefile
|
2011-01-17 07:21:00 +02:00
|
|
|
index 99c00bb..0630be1 100644
|
2010-06-07 07:42:15 +03:00
|
|
|
--- a/src/Makefile
|
|
|
|
+++ b/src/Makefile
|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
# generic UNIX makefile
|
|
|
|
-CC = gcc # req. for linux
|
|
|
|
+#CC = gcc # req. for linux
|
|
|
|
#CC = cc # if you don't have gcc
|
|
|
|
# Configuration options:
|
|
|
|
#
|
2011-01-17 07:21:00 +02:00
|
|
|
@@ -16,11 +16,12 @@ CC = gcc # req. for linux
|
2010-06-07 07:42:15 +03:00
|
|
|
# (6) -DXWINGRAPHX 1 X-Windows graphics (UNIX)
|
|
|
|
# (7) -DPERMUTATE enables -P switch
|
|
|
|
|
|
|
|
-CFLAGS = -O -DEXT94 -DXWINGRAPHX -DPERMUTATE
|
|
|
|
+CFLAGS := $(CFLAGS) -O -DEXT94 -DPERMUTATE -DCURSESGRAPHX
|
|
|
|
LFLAGS = -x
|
|
|
|
-# LIB = -lcurses -ltermlib # enable this one for curses display
|
2011-01-17 07:21:00 +02:00
|
|
|
+# LIB = -lncurses -ltermlib # enable this one for curses display
|
|
|
|
+LIB = -lncurses
|
2010-06-07 07:42:15 +03:00
|
|
|
# LIB = -lvgagl -lvga # enable this one for Linux/SVGA
|
|
|
|
-LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11
|
|
|
|
+# LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11
|
|
|
|
|
|
|
|
.SUFFIXES: .o .c .c~ .man .doc .6
|
|
|
|
MAINFILE = pmars
|
2011-01-17 07:21:00 +02:00
|
|
|
@@ -37,8 +38,8 @@ flags:
|
|
|
|
|
2010-06-07 07:42:15 +03:00
|
|
|
$(MAINFILE): $(OBJ1) $(OBJ2) $(OBJ3)
|
|
|
|
@echo Linking $(MAINFILE)
|
2011-01-17 07:21:00 +02:00
|
|
|
- @$(CC) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB)
|
2010-06-07 07:42:15 +03:00
|
|
|
- @strip $(MAINFILE)
|
2011-01-17 07:21:00 +02:00
|
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB)
|
|
|
|
+ $(STRIP) $(MAINFILE)
|
2010-06-07 07:42:15 +03:00
|
|
|
@echo done
|
|
|
|
|
|
|
|
token.o asm.o disasm.o: asm.h
|