Makefile revision 8d51ab70
1726c52daSShuo Chen 2726c52daSShuo ChenCXXFLAGS = -std=c++11 -pthread -O2 -iquote include/ -I../ 3726c52daSShuo ChenLDFLAGS = -L 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 23726c52daSShuo Chenbin/ttcp: LDFLAGS += -lboost_program_options 24726c52daSShuo Chen 25726c52daSShuo Chenclean: 26726c52daSShuo Chen rm -f $(LIB_OBJS) $(LIB) $(BINS) 27726c52daSShuo Chen 28