Blob Blame History Raw
diff -up ./src/Makefile.fix_smp_flags ./src/Makefile
--- ./src/Makefile.fix_smp_flags	2006-07-23 20:03:43.000000000 +0200
+++ ./src/Makefile	2007-09-30 19:50:04.000000000 +0200
@@ -106,8 +106,8 @@ ALL_OBJ    = $(GEN_SRC:.c=.o) $(ORIG_NOR
 
 
 build:
-	$(MAKE) CFLAGS_ADDTL=-O boxes
-	strip boxes
+	$(MAKE) CFLAGS_ADDTL="${CFLAGS_ADTL}" boxes
+	#strip boxes
 debug:
 	$(MAKE) CFLAGS_ADDTL=-g boxes
 
@@ -123,10 +123,8 @@ parser.c parser.h: parser.y boxes.h regexp/regexp.h
	$(YACC) -o parser.c -d parser.y

 lex.yy.c: lexer.l boxes.h
-	$(LEX) -t lexer.l > lexer.tmp.c
-	echo '#include "config.h"' > lex.yy.c
-	cat lexer.tmp.c >> lex.yy.c
-	rm lexer.tmp.c
+	echo '#include "config.h"' > lexer.tmp.c
+	$(LEX) -t lexer.l >> lexer.tmp.c && mv lexer.tmp.c lex.yy.c


 boxes.o: boxes.c boxes.h regexp/regexp.h shape.h tools.h generate.h remove.h config.h
diff -up ./Makefile.fix_smp_flags ./Makefile
--- ./Makefile.fix_smp_flags	2006-07-23 20:03:43.000000000 +0200
+++ ./Makefile	2007-09-30 19:48:19.000000000 +0200
@@ -85,10 +85,9 @@ RCS_FILES  = $(CL_FILES) Makefile doc/bo
 ALL_FILES  = COPYING README README.Win32.txt boxes-config Makefile
 DOC_FILES  = doc/boxes.1 doc/boxes.1.in doc/boxes.el
 
-
 build debug boxes: src/boxes.h doc/boxes.1
 	@echo For compilation info see the boxes website at http://boxes.thomasjensen.com/
-	$(MAKE) -C src $@
+	$(MAKE) CFLAGS_ADTL="${CFLAGS_ADTL}" -C src $@
 
 
 src/boxes.h: src/boxes.h.in src/regexp/regexp.h Makefile