37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
$NetBSD: patch-aa,v 1.4 2015/09/30 16:39:45 richard Exp $
|
|
allow various flags and LIBS to be passed in
|
|
--- Makefile.orig 2011-08-09 05:13:15.000000000 +0000
|
|
+++ Makefile
|
|
@@ -56,8 +56,8 @@
|
|
#FLAGS = -O -m -DMEM_CHECK
|
|
|
|
# for gcc
|
|
-CC = gcc
|
|
-FLAGS = -O3 -W -Wall -ansi
|
|
+#CC = gcc
|
|
+#FLAGS = -O3 -W -Wall -ansi
|
|
#FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
|
|
#FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -W -Wall -ansi -DMEM_CHECK
|
|
#FLAGS = -O -pg -W -Wall -ansi -DMEM_CHECK
|
|
@@ -80,15 +80,15 @@ LIBS =
|
|
|
|
STAND_ALONE = -DSTAND_ALONE
|
|
|
|
-ifdef STAND_ALONE
|
|
- CSRC = mem.c nhash.c cpp.c lexer.c assert.c macro.c eval.c
|
|
- FINAL_STEP = $(CC) $(LDFLAGS) -DUCPP_CONFIG $(STAND_ALONE) -o ucpp $(CSRC) $(LIBS)
|
|
-endif
|
|
+#ifdef STAND_ALONE
|
|
+CSRC = mem.c nhash.c cpp.c lexer.c assert.c macro.c eval.c
|
|
+FINAL_STEP = $(CC) $(LDFLAGS) -DUCPP_CONFIG $(STAND_ALONE) -o ucpp $(CSRC) $(LIBS)
|
|
+#endif
|
|
|
|
# ----- nothing should be changed below this line -----
|
|
|
|
COBJ = mem.o nhash.o cpp.o lexer.o assert.o macro.o eval.o
|
|
-CFLAGS = $(FLAGS)
|
|
+#CFLAGS = $(FLAGS)
|
|
|
|
all: ucpp
|
|
@ar cq libucpp.a *.o
|