mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-28 05:39:00 +08:00
29 lines
997 B
Makefile
29 lines
997 B
Makefile
CFLAGS= -W -Wall -I.. -pthread -g
|
|
|
|
all:
|
|
OS=`uname`; \
|
|
test "$$OS" = Linux && LIBS="-ldl" ; \
|
|
$(CC) $(CFLAGS) hello.c ../mongoose.c $$LIBS $(ADD) -o hello;
|
|
$(CC) $(CFLAGS) upload.c ../mongoose.c $$LIBS $(ADD) -o upload;
|
|
$(CC) $(CFLAGS) post.c ../mongoose.c $$LIBS $(ADD) -o post;
|
|
$(CC) $(CFLAGS) -DUSE_WEBSOCKET websocket.c ../mongoose.c $$LIBS $(ADD) -o websocket;
|
|
$(CC) $(CFLAGS) chat.c ../mongoose.c $$LIBS $(ADD) -o chat
|
|
|
|
|
|
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:
|
|
$(CL) upload.c ../mongoose.c $(CLFLAGS)
|
|
$(CL) hello.c ../mongoose.c $(CLFLAGS)
|
|
$(CL) upload.c ../mongoose.c $(CLFLAGS)
|
|
$(CL) post.c ../mongoose.c $(CLFLAGS)
|
|
$(CL) post.c ../mongoose.c $(CLFLAGS)
|
|
$(CL) /DUSE_WEBSOCKET websocket.c ../mongoose.c $(CLFLAGS)
|
|
|
|
clean:
|
|
rm -rf hello upload post websocket chat *.exe *.dSYM *.obj
|