mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2025-04-21 12:27:27 +03:00
[new package] Rubén Berenguel's ports
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
35
pmars/patches/001-remove-static-define-in-makefile.patch
Normal file
35
pmars/patches/001-remove-static-define-in-makefile.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 99c00bb..17a51ed 100644
|
||||
--- 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:
|
||||
#
|
||||
@@ -16,11 +16,11 @@ CC = gcc # req. for linux
|
||||
# (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
|
||||
+LIB = -lncurses -ltermlib # enable this one for curses display
|
||||
# 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
|
||||
@@ -38,7 +38,7 @@ flags:
|
||||
$(MAINFILE): $(OBJ1) $(OBJ2) $(OBJ3)
|
||||
@echo Linking $(MAINFILE)
|
||||
@$(CC) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB)
|
||||
- @strip $(MAINFILE)
|
||||
+ @$(STRIP) $(MAINFILE)
|
||||
@echo done
|
||||
|
||||
token.o asm.o disasm.o: asm.h
|
||||
Reference in New Issue
Block a user