Commit f869380a1f31f974100930e697366e160980f28e

xantares 2015-03-03T08:49:31

add CFLAGS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/Makefile b/Makefile
index 4d11de8..f40ccf8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 # dlfcn-win32 Makefile
 #
 include config.mak
+CFLAGS=-Wall -O3 -fomit-frame-pointer
 
 ifeq ($(BUILD_SHARED),yes)
 	TARGETS += libdl.dll libdl.dll.a
@@ -24,7 +25,7 @@ HEADERS  := dlfcn.h
 all: $(TARGETS)
 
 %.o: %.c
-	$(CC) -o $@ -c $< -Wall -O3 -fomit-frame-pointer
+	$(CC) -o $@ -c $< $(CFLAGS)
 
 libdl.a: $(LIB_OBJS)
 	$(AR) cru $@ $^