2015-10-09 07:24:12 +08:00
|
|
|
CXX=clang++
|
2015-10-12 02:59:27 +08:00
|
|
|
CFLAGS=-std=c++1y -O2 -Wall -Wno-unknown-pragmas
|
|
|
|
LDFLAGS=-luv -lhttp_parser speedy/r3/.libs/libr3.a -L/usr/local/lib -lpcre -pthread
|
2015-10-09 07:24:12 +08:00
|
|
|
|
|
|
|
INC=-I./
|
|
|
|
SOURCES=$(wildcard *.cpp)
|
|
|
|
EXECUTABLE=memgraph
|
|
|
|
|
|
|
|
all: $(EXECUTABLE)
|
|
|
|
|
|
|
|
$(EXECUTABLE): $(SOURCES)
|
|
|
|
$(CXX) $(CFLAGS) $(SOURCES) -o $(EXECUTABLE) $(INC) $(LDFLAGS)
|
|
|
|
|
|
|
|
.PHONY:
|
|
|
|
clean:
|
|
|
|
rm -f memgraph
|
|
|
|
rm -f *.o
|