summaryrefslogtreecommitdiff
blob: 4ce0a4b6d16cc0e818deeb87365e6103448ac2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- zlog-1.2.12.orig/test/makefile	2013-09-25 04:38:42.000000000 -0700
+++ zlog-1.2.12/test/makefile	2018-02-13 16:59:33.812131188 -0800
@@ -1,3 +1,6 @@
+CFLAGS := -O2 -g
+CC := gcc
+
 exe = 		\
 	test_tmp	\
 	test_buf	\
@@ -24,10 +27,10 @@
 all     :       $(exe)
 
 $(exe)  :       %:%.o
-	gcc -O2 -g -o $@ $^ -L../src -lzlog -lpthread -Wl,-rpath ../src
+	$(CC) $(CFLAGS) -o $@ $^ -L../src -lzlog -lpthread -Wl,-rpath ../src
 
 .c.o	:
-	gcc -O2 -g -Wall -D_GNU_SOURCE -o $@ -c $< -I. -I../src
+	$(CC) $(CLFAGS) -Wall -D_GNU_SOURCE -o $@ -c $< -I. -I../src
 
 clean	:
 	rm -f press.log* *.o $(exe)