Commit 179761fd authored by Sergey Lyubka's avatar Sergey Lyubka

Removed LUA_FLAGS from CL flags

parent b783813e
...@@ -26,7 +26,7 @@ all: ...@@ -26,7 +26,7 @@ all:
# To build with Lua, download and unzip Lua 5.2.1 source code into the # To build with Lua, download and unzip Lua 5.2.1 source code into the
# mongoose directory, and then add $(LUA_FLAGS) to CFLAGS below # mongoose directory, and then add $(LUA_FLAGS) to CFLAGS below
LUA = lua-5.2.1/src LUA = lua-5.2.1/src
LUA_FLAGS = -DUSE_LUA -I$(LUA) -L$(LUA) -llua -lm LUA_FLAGS = -I$(LUA) -L$(LUA) -llua -lm
CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread $(COPT) CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread $(COPT)
LIB = lib$(PROG).so$(MONGOOSE_LIB_SUFFIX) LIB = lib$(PROG).so$(MONGOOSE_LIB_SUFFIX)
...@@ -49,8 +49,8 @@ cocoa: ...@@ -49,8 +49,8 @@ cocoa:
$(CC) mongoose.c main.c -DUSE_COCOA $(CFLAGS) -framework Cocoa -ObjC -arch i386 -arch x86_64 -o Mongoose $(CC) mongoose.c main.c -DUSE_COCOA $(CFLAGS) -framework Cocoa -ObjC -arch i386 -arch x86_64 -o Mongoose
V=`perl -lne '/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1' mongoose.c`; DIR=dmg/Mongoose.app && rm -rf $$DIR && mkdir -p $$DIR/Contents/{MacOS,Resources} && install -m 644 build/mongoose_*.png $$DIR/Contents/Resources/ && install -m 644 build/Info.plist $$DIR/Contents/ && install -m 755 Mongoose $$DIR/Contents/MacOS/ && ln -fs /Applications dmg/ ; hdiutil create Mongoose_$$V.dmg -volname "Mongoose $$V" -srcfolder dmg -ov #; rm -rf dmg V=`perl -lne '/define\s+MONGOOSE_VERSION\s+"(\S+)"/ and print $$1' mongoose.c`; DIR=dmg/Mongoose.app && rm -rf $$DIR && mkdir -p $$DIR/Contents/{MacOS,Resources} && install -m 644 build/mongoose_*.png $$DIR/Contents/Resources/ && install -m 644 build/Info.plist $$DIR/Contents/ && install -m 755 Mongoose $$DIR/Contents/MacOS/ && ln -fs /Applications dmg/ ; hdiutil create Mongoose_$$V.dmg -volname "Mongoose $$V" -srcfolder dmg -ov #; rm -rf dmg
unix_unit_test: unix_unit_test: $(LUA_OBJECTS)
$(CC) -I. test/unit_test.c -o unit_test $(CFLAGS) $(CC) test/unit_test.c -o unit_test -I. $(LUA_FLAGS) $(CFLAGS) -g -O0
./unit_test ./unit_test
########################################################################## ##########################################################################
...@@ -66,7 +66,7 @@ CYA = e:/cyassl-2.0.0rc2 ...@@ -66,7 +66,7 @@ CYA = e:/cyassl-2.0.0rc2
#DBG = /Zi /DDEBUG /Od #DBG = /Zi /DDEBUG /Od
DBG = /DNDEBUG /O1 DBG = /DNDEBUG /O1
CL = $(MSVC)/bin/cl /MD /TC /nologo $(DBG) /Gz /W3 /DNO_SSL_DL \ CL = $(MSVC)/bin/cl /MD /TC /nologo $(DBG) /Gz /W3 /DNO_SSL_DL \
/I$(MSVC)/include /DUSE_LUA /I$(LUA) /I. /GA /I$(MSVC)/include /I$(LUA) /I. /GA
MSLIB = /link /incremental:no /libpath:$(MSVC)/lib /machine:IX86 \ MSLIB = /link /incremental:no /libpath:$(MSVC)/lib /machine:IX86 \
user32.lib shell32.lib comdlg32.lib ws2_32.lib advapi32.lib \ user32.lib shell32.lib comdlg32.lib ws2_32.lib advapi32.lib \
cyassl.lib lua.lib cyassl.lib lua.lib
...@@ -116,7 +116,7 @@ windows_unit_test: cyassl.lib lua.lib ...@@ -116,7 +116,7 @@ windows_unit_test: cyassl.lib lua.lib
windows: cyassl.lib lua.lib windows: cyassl.lib lua.lib
$(MSVC)/bin/rc build\res.rc $(MSVC)/bin/rc build\res.rc
$(CL) main.c mongoose.c $(MSLIB) build\res.res \ $(CL) main.c mongoose.c /DUSE_LUA $(MSLIB) build\res.res \
/out:$(PROG).exe /subsystem:windows /out:$(PROG).exe /subsystem:windows
# $(CL) mongoose.c /GD $(LINK) /DLL /DEF:build\dll.def /out:$(PROG).dll # $(CL) mongoose.c /GD $(LINK) /DLL /DEF:build\dll.def /out:$(PROG).dll
......
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