mongoose/examples/Makefile

10 lines
358 B
Makefile
Raw Normal View History

CFLAGS= -W -Wall -I.. -pthread -g
all:
OS=`uname`; \
test "$$OS" = Linux && LIBS="-ldl" ; \
$(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;
$(CC) $(CFLAGS) post.c ../mongoose.c $$LIBS $(ADD) -o post;
$(CC) $(CFLAGS) chat.c ../mongoose.c $$LIBS $(ADD) -o chat