Commit 0fb5db59 authored by Sergey Lyubka's avatar Sergey Lyubka

Putting CFLAGS at the end of the compilation flags for Linux

parent 20b274bb
CFLAGS = -W -Wall -I.. -pthread -g -pipe $(COPT) CFLAGS = -W -Wall -I.. -pthread -g -pipe $(COPT)
DLL_FLAGS = -DLUA_COMPAT_ALL -I../lua-5.2.1/src DLL_FLAGS = -DLUA_COMPAT_ALL -I../build
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
else else
...@@ -16,25 +16,25 @@ else ...@@ -16,25 +16,25 @@ else
endif endif
endif endif
all: hello upload post websocket chat lua_dll all: hello upload post websocket chat
hello: hello:
$(CC) $(CFLAGS) hello.c ../mongoose.c -o $@ $(CC) hello.c ../mongoose.c -o $@ $(CFLAGS)
upload: upload:
$(CC) $(CFLAGS) upload.c ../mongoose.c -o $@ $(CC) upload.c ../mongoose.c -o $@ $(CFLAGS)
post: post:
$(CC) $(CFLAGS) post.c ../mongoose.c -o $@ $(CC) post.c ../mongoose.c -o $@ $(CFLAGS)
websocket: websocket:
$(CC) $(CFLAGS) -DUSE_WEBSOCKET websocket.c ../mongoose.c -o $@ $(CC) -DUSE_WEBSOCKET websocket.c ../mongoose.c -o $@ $(CFLAGS)
chat: chat:
$(CC) $(CFLAGS) chat.c ../mongoose.c -o $@ $(CC) chat.c ../mongoose.c -o $@ $(CFLAGS)
lua_dll: lua_dll:
$(CC) $(CFLAGS) $(DLL_FLAGS) lua_dll.c -o $@.so $(CC) lua_dll.c ../build/lua_5.2.1.c -o $@.so $(CFLAGS) $(DLL_FLAGS)
MSVC = ../../vc6 MSVC = ../../vc6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment