memgraph/Makefile

22 lines
587 B
Makefile
Raw Normal View History

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
CFLAGS_DEBUG=-std=c++1y -Wall -Wno-unknown-pragmas -g
LDFLAGS=-luv -lhttp_parser src/speedy/r3/.libs/libr3.a -L/usr/local/lib -lpcre -pthread
2015-10-09 07:24:12 +08:00
INC=-I./src/ -I./src/speedy/ -I./src/speedy/rapidjson/include/ -I./libs/lexertl
SOURCES=src/memgraph.cpp
EXECUTABLE=build/memgraph
2015-10-09 07:24:12 +08:00
all: $(EXECUTABLE)
$(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