summaryrefslogtreecommitdiff
path: root/datastore-leveldb/Makefile
blob: 4879b1a2888685c296f8a8fe3b08a0cae3307388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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++0x -Imongoose
LDFLAGS += -lleveldb -lboost_regex -lboost_program_options

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)