diff options
Diffstat (limited to 'datastore-leveldb/Makefile')
-rw-r--r-- | datastore-leveldb/Makefile | 22 |
1 files changed, 15 insertions, 7 deletions
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) |