From 9f7530aa40c4197a8c1979b37baab43ba2e6205f Mon Sep 17 00:00:00 2001 From: Marc Lasch Date: Tue, 11 Aug 2015 15:13:25 +0200 Subject: hello world test for mongoose --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.1