From e5342fa4f51b3fcbf931cabeb996183f96ceedbc Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 18 Apr 2013 14:35:49 +0200 Subject: leveldb: split up in 3 files --- datastore-leveldb/Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'datastore-leveldb/Makefile') diff --git a/datastore-leveldb/Makefile b/datastore-leveldb/Makefile index 3117123..03d8d43 100644 --- a/datastore-leveldb/Makefile +++ b/datastore-leveldb/Makefile @@ -1,15 +1,23 @@ -CC = gcc -CPP = foo -OBJ= src/main.o mongoose/mongoose.o +OBJ= src/web.o src/db.o src/main.o mongoose/mongoose.o OUT = main -CFLAGS = -CXXFLAGS = -std=c++11 -Imongoose -LDFLAGS = -lleveldb -lboost_regex + +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) - $(CC) $(CPPFLAGS) $(OBJ) -o $(OUT) $(LDFLAGS) + $(CXX) $(CPPFLAGS) $(OBJ) -o $(OUT) $(LDFLAGS) clean: rm -rf $(OUT) $(OBJ) -- cgit v1.2.1