aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-11 17:11:55 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-03-11 17:11:55 -0700
commite69d90ee0e022bbe4718103ea3942b6e675b382b (patch)
tree71fc162ba04240edec38ffe3f3e6ad13ee4f9cf2
parent6a6ebd39e522922aa493552961d4b599f1e83805 (diff)
parentf869380a1f31f974100930e697366e160980f28e (diff)
downloaddlfcn-win32-e69d90ee0e022bbe4718103ea3942b6e675b382b.tar.gz
dlfcn-win32-e69d90ee0e022bbe4718103ea3942b6e675b382b.tar.bz2
dlfcn-win32-e69d90ee0e022bbe4718103ea3942b6e675b382b.zip
Merge pull request #6 from xantares/patch-2
add CFLAGS var
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4d11de8..f40ccf8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
2# dlfcn-win32 Makefile 2# dlfcn-win32 Makefile
3# 3#
4include config.mak 4include config.mak
5CFLAGS=-Wall -O3 -fomit-frame-pointer
5 6
6ifeq ($(BUILD_SHARED),yes) 7ifeq ($(BUILD_SHARED),yes)
7 TARGETS += libdl.dll libdl.dll.a 8 TARGETS += libdl.dll libdl.dll.a
@@ -24,7 +25,7 @@ HEADERS := dlfcn.h
24all: $(TARGETS) 25all: $(TARGETS)
25 26
26%.o: %.c 27%.o: %.c
27 $(CC) -o $@ -c $< -Wall -O3 -fomit-frame-pointer 28 $(CC) -o $@ -c $< $(CFLAGS)
28 29
29libdl.a: $(LIB_OBJS) 30libdl.a: $(LIB_OBJS)
30 $(AR) cru $@ $^ 31 $(AR) cru $@ $^