mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-29 12:41:03 +00:00
Starting to rebuild chat example on Lua
This commit is contained in:
1 parent
a3a63f7e56
commit
eaa0e26a85
3 files changed
+26
-390
No files matched your search
+13
-8
@@ -1,9 +1,17 @@
|
||||
CFLAGS = -W -Wall -I.. -pthread -g -pipe $(CFLAGS_EXTRA)
|
||||
CFLAGS = -W -Wall -I.. -pthread -g -pipe $(CFLAGS_EXTRA)
|
||||
DLL_FLAGS = -DLUA_COMPAT_ALL -I../build
|
||||
RM = rm -rf
|
||||
RM = rm -rf
|
||||
MSVC = ../../vc6
|
||||
CL = $(MSVC)/bin/cl
|
||||
CLFLAGS = /MD /TC /nologo $(CFLAGS_EXTRA) /W3 \
|
||||
/I$(MSVC)/include /I.. /Dsnprintf=_snprintf
|
||||
LFLAGS = /link /incremental:no /libpath:$(MSVC)/lib /machine:IX86
|
||||
LUA_FLAGS = -I/usr/local/include -L/usr/local/lib -llua
|
||||
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
RM = del /q /f
|
||||
CC = $(MSVC)/bin/cl $(CLFLAGS)
|
||||
else
|
||||
UNAME_S := $(shell uname -s)
|
||||
DLL_FLAGS += -shared
|
||||
@@ -27,18 +35,15 @@ all: websocket_html.c
|
||||
$(CC) auth.c ../mongoose.c -o auth $(CFLAGS)
|
||||
$(CC) server.c ../mongoose.c -o server $(CFLAGS)
|
||||
|
||||
chat$(EXE_SUFFIX): chat.c
|
||||
$(CC) chat.c ../mongoose.c -DMONGOOSE_USE_LUA -o $@ $(CFLAGS) $(LUA_FLAGS)
|
||||
|
||||
# $(CC) chat.c ../mongoose.c -o chat $(CFLAGS)
|
||||
# $(CC) lua_dll.c ../build/lua_5.2.1.c -o $@.so $(CFLAGS) $(DLL_FLAGS)
|
||||
|
||||
websocket_html.c: websocket.html
|
||||
perl mkdata.pl $< > $@
|
||||
|
||||
MSVC = ../../vc6
|
||||
CL = $(MSVC)/bin/cl
|
||||
CLFLAGS = /MD /TC /nologo $(DBG) /W3 \
|
||||
/I$(MSVC)/include /I.. /Dsnprintf=_snprintf
|
||||
LFLAGS = /link /incremental:no /libpath:$(MSVC)/lib /machine:IX86
|
||||
|
||||
windows: websocket_html.c
|
||||
$(CL) hello.c ../mongoose.c $(CLFLAGS) $(LFLAGS)
|
||||
$(CL) websocket.c websocket_html.c ../mongoose.c $(CLFLAGS) $(LFLAGS)
|
||||
|
||||
Reference in new issue
Block a user