2015-10-09 07:24:12 +08:00
|
|
|
CXX=clang++
|
2016-03-19 19:39:30 +08:00
|
|
|
CFLAGS=-std=c++1y -DNDEBUG -O2 -Wall -Wno-unknown-pragmas
|
2016-01-06 22:45:54 +08:00
|
|
|
CFLAGS_DEBUG=-std=c++1y -Wall -Wno-unknown-pragmas -g
|
2016-05-08 17:33:07 +08:00
|
|
|
LDFLAGS=-luv -lhttp_parser src/speedy/r3/.libs/libr3.a -L/usr/local/lib -lpcre -pthread
|
2015-10-09 07:24:12 +08:00
|
|
|
|
2016-05-29 03:18:26 +08:00
|
|
|
INC=-I./src/ -I./src/speedy/ -I./src/speedy/rapidjson/include/ -I./libs/lexertl
|
2016-05-08 17:33:07 +08:00
|
|
|
SOURCES=src/memgraph.cpp
|
|
|
|
EXECUTABLE=build/memgraph
|
2015-10-09 07:24:12 +08:00
|
|
|
|
|
|
|
all: $(EXECUTABLE)
|
2016-01-06 22:45:54 +08:00
|
|
|
|
|
|
|
$(EXECUTABLE): $(SOURCES)
|
|
|
|
$(CXX) $(CFLAGS) $(SOURCES) -o $(EXECUTABLE) $(INC) $(LDFLAGS)
|
|
|
|
|
|
|
|
debug: $(SOURCES)
|
|
|
|
$(CXX) $(CFLAGS_DEBUG) $(SOURCES) -o $(EXECUTABLE) $(INC) $(LDFLAGS)
|
2015-10-09 07:24:12 +08:00
|
|
|
|
|
|
|
.PHONY:
|
|
|
|
clean:
|
|
|
|
rm -f memgraph
|
|
|
|
rm -f *.o
|