OBJ= src/web.o src/db.o src/server.o mongoose/mongoose.o OUT = bin/server CFLAGS += -Wall -DNO_CGI -DNO_POPEN -DUSE_IPV6 -DNO_SSL CXXFLAGS += -Wall -std=c++11 -Imongoose LDFLAGS += -lleveldb -lboost_regex 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)