1726c52daSShuo Chen 2e146b157SShuo ChenCXXFLAGS = -Wall -std=c++11 -pthread -O2 -g -iquote include/ -I../ -I/usr/local/include 3e146b157SShuo ChenLDFLAGS = -L lib/ -L/usr/local/lib -ltpc 4726c52daSShuo Chen 58d51ab70SShuo ChenLIB_HEADERS := $(wildcard include/*.h) ../datetime/Timestamp.h ../thread/Atomic.h 6726c52daSShuo ChenLIB_SRCS := $(wildcard lib/*.cc) ../datetime/Timestamp.cc 7726c52daSShuo ChenLIB_OBJS := $(LIB_SRCS:.cc=.o) 8726c52daSShuo ChenLIB := lib/libtpc.a 9726c52daSShuo Chen 10726c52daSShuo ChenBIN_SRCS := $(wildcard bin/*.cc) 11726c52daSShuo ChenBINS := $(BIN_SRCS:.cc=) 12726c52daSShuo Chen 13726c52daSShuo Chenall: $(BINS) 148d51ab70SShuo Chenlib: $(LIB) 15726c52daSShuo Chen 168d51ab70SShuo Chen$(LIB_OBJS) : Makefile $(LIB_HEADERS) 17726c52daSShuo Chen 18726c52daSShuo Chen$(LIB): $(LIB_OBJS) 19726c52daSShuo Chen ar rcs $@ $^ 20726c52daSShuo Chen 21726c52daSShuo Chen$(BINS): $(LIB) 22726c52daSShuo Chen 2324ca08a8SShuo Chenbin/ttcp: LDLIBS += -lboost_program_options 24726c52daSShuo Chen 25726c52daSShuo Chenclean: 26726c52daSShuo Chen rm -f $(LIB_OBJS) $(LIB) $(BINS) 27726c52daSShuo Chen 28