Makefile revision 726c52da
1726c52daSShuo Chen 2726c52daSShuo ChenCXXFLAGS = -std=c++11 -pthread -O2 -iquote include/ -I../ 3726c52daSShuo ChenLDFLAGS = -L lib/ -ltpc 4726c52daSShuo Chen 5726c52daSShuo ChenLIB_SRCS := $(wildcard lib/*.cc) ../datetime/Timestamp.cc 6726c52daSShuo ChenLIB_OBJS := $(LIB_SRCS:.cc=.o) 7726c52daSShuo ChenLIB := lib/libtpc.a 8726c52daSShuo Chen 9726c52daSShuo ChenBIN_SRCS := $(wildcard bin/*.cc) 10726c52daSShuo ChenBINS := $(BIN_SRCS:.cc=) 11726c52daSShuo Chen 12726c52daSShuo Chenall: $(BINS) 13726c52daSShuo Chen 14726c52daSShuo Chen$(LIB_OBJS) : Makefile 15726c52daSShuo Chen 16726c52daSShuo Chen$(LIB): $(LIB_OBJS) 17726c52daSShuo Chen ar rcs $@ $^ 18726c52daSShuo Chen 19726c52daSShuo Chen$(BINS): $(LIB) 20726c52daSShuo Chen 21726c52daSShuo Chenbin/ttcp: LDFLAGS += -lboost_program_options 22726c52daSShuo Chen 23726c52daSShuo Chenclean: 24726c52daSShuo Chen rm -f $(LIB_OBJS) $(LIB) $(BINS) 25726c52daSShuo Chen 26