reactor_lib.mk revision eab5e07b
1eab5e07bSShuo ChenCXXFLAGS = -O0 -g  -Wall -I ../.. -pthread
2eab5e07bSShuo ChenLDFLAGS = -lpthread -lmuduo -L.
3eab5e07bSShuo ChenBASE_SRC = ../../logging/Logging.cc ../../thread/Thread.cc ../../datetime/Timestamp.cc
4eab5e07bSShuo Chen
5eab5e07bSShuo Chenlibmuduo.a: $(BASE_SRC) $(LIB_SRC)
6eab5e07bSShuo Chen	g++ $(CXXFLAGS) -c $^
7eab5e07bSShuo Chen	ar rcs $@ $(wildcard *.o)
8eab5e07bSShuo Chen
9eab5e07bSShuo Chen$(BINARIES): libmuduo.a
10eab5e07bSShuo Chen	g++ $(CXXFLAGS) -o $@ $(filter %.cc,$^) $(LDFLAGS)
11eab5e07bSShuo Chen
12eab5e07bSShuo Chenclean:
13eab5e07bSShuo Chen	rm -f $(BINARIES) *.o *.a core
14eab5e07bSShuo Chen
15