diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2013-04-18 14:35:49 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2013-04-18 14:35:49 +0200 |
commit | e5342fa4f51b3fcbf931cabeb996183f96ceedbc (patch) | |
tree | 430887755433e59a2f2b82705f6290ef23affa7a /datastore-leveldb/Makefile | |
parent | 1ba325a1679acc7692cb9f674cfbe452cf763e12 (diff) | |
download | ebus-alt-e5342fa4f51b3fcbf931cabeb996183f96ceedbc.tar.gz ebus-alt-e5342fa4f51b3fcbf931cabeb996183f96ceedbc.zip |
leveldb: split up in 3 files
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) |