summaryrefslogtreecommitdiff
path: root/lang/picoc/files/patch-Makefile
blob: c03e4ebfa85d9d5dec36b8a7b8efa4a868b71062 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- Makefile.orig	2014-08-15 15:40:43.000000000 -0400
+++ Makefile	2014-08-15 15:41:37.000000000 -0400
@@ -1,5 +1,5 @@
-CC=gcc
-CFLAGS=-Wall -pedantic -g -DUNIX_HOST
+CC?=gcc
+CFLAGS+=-Wall -pedantic -g -DUNIX_HOST
 LIBS=-lm -lreadline
 
 TARGET	= picoc
@@ -14,7 +14,7 @@
 all: $(TARGET)
 
 $(TARGET): $(OBJS)
-	$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+	$(CC) $(CFLAGS) ${CPPFLAGS} -o $(TARGET) $(OBJS) ${LDFLAGS} $(LIBS)
 
 test:	all
 	(cd tests; make test)