Added examples/hello.c - a minimalistic embedding example

This commit is contained in:
valenok committed 2011-06-18 00:29:46 +01:00
1 parent 377cece9c0
commit 9bd2812fac
2 files changed
+30 -3

No files matched your search

+2 -3
View File
@@ -1,8 +1,7 @@
PROG= chat
CFLAGS= -W -Wall -I.. -pthread -g
all:
OS=`uname`; \
test "$$OS" = Linux && LIBS="-ldl" ; \
$(CC) $(CFLAGS) chat.c ../mongoose.c $$LIBS $(ADD) -o $(PROG)
./$(PROG)
$(CC) $(CFLAGS) hello.c ../mongoose.c $$LIBS $(ADD) -o hello;
$(CC) $(CFLAGS) chat.c ../mongoose.c $$LIBS $(ADD) -o chat