2015-09-19 01:49:23 +08:00
|
|
|
CXX=clang++
|
2015-10-04 15:49:12 +08:00
|
|
|
CFLAGS=-std=c++11 -Wall -O2
|
2015-09-26 07:01:25 +08:00
|
|
|
LDFLAGS=-luv -lhttp_parser ./r3/.libs/libr3.a -L/usr/local/lib -lpcre
|
2015-09-24 07:00:02 +08:00
|
|
|
# debug only
|
2015-10-04 15:49:12 +08:00
|
|
|
INC=-I../
|
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
|