Makefile revision 460998e0
1460998e0SShuo ChenCXXFLAGS = -O0 -g -Wall -I ../.. -pthread 2460998e0SShuo ChenLDFLAGS = -lpthread 3460998e0SShuo ChenBASE_SRC = ../../logging/Logging.cc ../../thread/Thread.cc ../../datetime/Timestamp.cc 4460998e0SShuo Chen 5460998e0SShuo ChenLIB_SRC = EventLoop.cc 6460998e0SShuo ChenBINARIES = test1 test2 7460998e0SShuo Chen 8460998e0SShuo Chenall: $(BINARIES) 9460998e0SShuo Chen 10460998e0SShuo Chen$(BINARIES): 11460998e0SShuo Chen g++ $(CXXFLAGS) -o $@ $(LIB_SRC) $(BASE_SRC) $(filter %.cc,$^) $(LDFLAGS) 12460998e0SShuo Chen 13460998e0SShuo Chentest1: test1.cc 14460998e0SShuo Chentest2: test2.cc 15460998e0SShuo Chen 16460998e0SShuo Chenclean: 17460998e0SShuo Chen rm $(BINARIES) core 18