2010-05-04 04:46:42 +08:00
|
|
|
CFLAGS= -W -Wall -I.. -pthread -g
|
|
|
|
|
|
|
|
all:
|
|
|
|
OS=`uname`; \
|
|
|
|
test "$$OS" = Linux && LIBS="-ldl" ; \
|
2011-06-18 07:29:46 +08:00
|
|
|
$(CC) $(CFLAGS) hello.c ../mongoose.c $$LIBS $(ADD) -o hello;
|
2012-09-15 17:52:52 +08:00
|
|
|
$(CC) $(CFLAGS) upload.c ../mongoose.c $$LIBS $(ADD) -o upload;
|
2012-08-31 16:24:34 +08:00
|
|
|
$(CC) $(CFLAGS) post.c ../mongoose.c $$LIBS $(ADD) -o post;
|
2012-09-19 19:23:54 +08:00
|
|
|
$(CC) $(CFLAGS) -DUSE_WEBSOCKET websocket.c ../mongoose.c $$LIBS $(ADD) -o websocket;
|
2011-06-18 07:29:46 +08:00
|
|
|
$(CC) $(CFLAGS) chat.c ../mongoose.c $$LIBS $(ADD) -o chat
|
2012-09-25 04:25:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
MSVC = e:/vc6
|
|
|
|
CL = $(MSVC)/bin/cl
|
|
|
|
CLFLAGS = /MD /TC /nologo $(DBG) /W3 /DNO_SSL \
|
|
|
|
/I$(MSVC)/include /I.. /Dsnprintf=_snprintf \
|
|
|
|
/link /incremental:no /libpath:$(MSVC)/lib /machine:IX86
|
|
|
|
|
|
|
|
windows:
|
2012-11-30 18:09:39 +08:00
|
|
|
$(CL) upload.c ../mongoose.c $(CLFLAGS)
|
2012-09-25 04:25:06 +08:00
|
|
|
$(CL) hello.c ../mongoose.c $(CLFLAGS)
|
|
|
|
$(CL) upload.c ../mongoose.c $(CLFLAGS)
|
|
|
|
$(CL) post.c ../mongoose.c $(CLFLAGS)
|
|
|
|
$(CL) post.c ../mongoose.c $(CLFLAGS)
|
2012-10-14 22:00:04 +08:00
|
|
|
$(CL) /DUSE_WEBSOCKET websocket.c ../mongoose.c $(CLFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf hello hello.exe upload upload.exe post post.exe websocket websocket.exe chat chat.exe *.dSYM *.obj
|