CXX=clang++ CFLAGS=-std=c++11 -Wall LDFLAGS=-luv -lhttp_parser ./r3/.libs/libr3.a /usr/lib/x86_64-linux-gnu/libpcre.a # debug only INC=-I../ -g -O0 -fno-inline-functions SOURCES=$(wildcard *.cpp) EXECUTABLE=test.out # OBJECTS=$(SOURCES:.cpp=.o) all: $(EXECUTABLE) $(EXECUTABLE): $(SOURCES) $(CXX) $(CFLAGS) $(SOURCES) -o $(EXECUTABLE) $(INC) $(LDFLAGS) # .cpp.o: # $(CXX) $(CFLAGS) $< -o $@ $(LDFLAGS) $(INC) .PHONY: clean: rm -f *.out rm -f *.o