diff options
author | Marc Lasch <mlasch@mailbox.org> | 2015-08-11 15:13:25 +0200 |
---|---|---|
committer | Marc Lasch <mlasch@mailbox.org> | 2015-08-11 15:13:25 +0200 |
commit | 9f7530aa40c4197a8c1979b37baab43ba2e6205f (patch) | |
tree | bd60be0948ea1b3895c49a096dfeb50bf5c84d69 /Makefile | |
download | netgraph-9f7530aa40c4197a8c1979b37baab43ba2e6205f.tar.gz netgraph-9f7530aa40c4197a8c1979b37baab43ba2e6205f.zip |
hello world test for mongoose
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9c682b5 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +OBJ=src/server.o mongoose/mongoose.o +OUT=bin/server + +CFLAGS += -Wall -DNO_CGI -DNO_POPEN -DUSE_IPV6 +CXXFLAGS += -Wall -std=c++0x -Imongoose +#LDFLAGS += + +ifdef DEBUG +CFLAGS += -g -O0 +CXXFLAGS += -g -O0 +else +CFLAGS += -O3 +CXXFLAGS += -O3 +endif + +all: build + +build: $(OBJ) + $(CXX) $(CPPFLAGS) $(OBJ) -o $(OUT) $(LDFLAGS) +clean: + rm -rf $(OUT) $(OBJ) |