2015-09-19 01:49:23 +08:00
|
|
|
CXX=clang++
|
|
|
|
CFLAGS=-std=c++11 -Wall
|
2015-09-26 04:50:57 +08:00
|
|
|
LDFLAGS=-luv -lhttp_parser ./r3/.libs/libr3.a /usr/lib/x86_64-linux-gnu/libpcre.a
|
2015-09-24 07:00:02 +08:00
|
|
|
# debug only
|
|
|
|
INC=-I../ -g -O0 -fno-inline-functions
|
2015-09-19 01:49:23 +08:00
|
|
|
SOURCES=$(wildcard *.cpp)
|
|
|
|
EXECUTABLE=test.out
|
|
|
|
# OBJECTS=$(SOURCES:.cpp=.o)
|
|
|
|
|
|
|
|
all: $(EXECUTABLE)
|
|
|
|
|
|
|
|
$(EXECUTABLE): $(SOURCES)
|
2015-09-26 04:50:57 +08:00
|
|
|
$(CXX) $(CFLAGS) $(SOURCES) -o $(EXECUTABLE) $(INC) $(LDFLAGS)
|
2015-09-19 01:49:23 +08:00
|
|
|
|
|
|
|
# .cpp.o:
|
|
|
|
# $(CXX) $(CFLAGS) $< -o $@ $(LDFLAGS) $(INC)
|
|
|
|
|
|
|
|
.PHONY:
|
|
|
|
clean:
|
|
|
|
rm -f *.out
|
|
|
|
rm -f *.o
|