INCLUDE_PATH=./include LIBRARY_PATH=./lib LIBS=pthread CFLAGS=-Wall CXXFLAGS=--std=c++14 -Wall -O2 -g cobjs = temp/bit.o cppobjs = temp/main.o .PHONY: all prep clean all: prep main prep: @mkdir -p temp main: $(cppobjs) $(CXX) $(cppobjs) -L$(LIBRARY_PATH) -l$(LIBS) -o main temp/bit.o: bit.c $(CC) $(CFLAGS) $< -I$(INCLUDE_PATH) -c -o $@ temp/main.o: main.cpp hprose_tags.hpp hprose_srv.hpp hprose_cli.hpp hprose_conn.hpp hprose_ed.hpp hprose_types.hpp tcp.hpp udp.hpp worker.hpp timer.hpp buffers.hpp objpool.hpp $(CXX) $(CXXFLAGS) $< -I$(INCLUDE_PATH) -c -o $@ clean: @rm -f main @rm -rf temp