Rev | Line | |
---|
[4925] | 1 |
|
---|
[4934] | 2 | BOOST_DIR = /usr/local/include
|
---|
| 3 | THRIFT_DIR = /usr/local/include/thrift
|
---|
| 4 | LIB_DIR = /usr/local/lib
|
---|
| 5 | DEFS = -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H
|
---|
[4925] | 6 |
|
---|
[4934] | 7 | INC = -I$(THRIFT_DIR) -I$(BOOST_DIR)
|
---|
[4925] | 8 |
|
---|
[5390] | 9 | GEN_SRC = rtnetThriftClient.cpp \
|
---|
[4934] | 10 | gen-cpp/RtnetData.cpp \
|
---|
| 11 | gen-cpp/rtnet_constants.cpp gen-cpp/rtnet_types.cpp \
|
---|
| 12 | gen-cpp/rtnet_data_constants.cpp gen-cpp/rtnet_data_types.cpp
|
---|
[4925] | 13 |
|
---|
[4934] | 14 | GEN_OBJ = $(patsubst %.cpp,%.o, $(GEN_SRC))
|
---|
[4925] | 15 |
|
---|
| 16 | .PHONY: all clean
|
---|
| 17 |
|
---|
[5390] | 18 | all: gen-cpp rtnetThriftClient
|
---|
[4925] | 19 |
|
---|
[4934] | 20 | gen-cpp: rtnet.thrift
|
---|
| 21 | thrift -r -gen cpp rtnet.thrift
|
---|
| 22 |
|
---|
[4925] | 23 | %.o: %.cpp
|
---|
| 24 | $(CXX) -Wall -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H $(INC) -c $< -o $@
|
---|
| 25 |
|
---|
[5390] | 26 | ## rtnetThriftClient: rtnetThriftClient.o $(GEN_OBJ)
|
---|
[4929] | 27 | ## $(CXX) $^ -o $@ -L/usr/local/lib -lthrift
|
---|
| 28 |
|
---|
[5390] | 29 | rtnetThriftClient: rtnetThriftClient.o $(GEN_OBJ)
|
---|
[4929] | 30 | $(CXX) $^ -o $@ /usr/local/lib/libthrift.a
|
---|
[4925] | 31 |
|
---|
| 32 | clean:
|
---|
[5390] | 33 | $(RM) *.o gen-cpp/*.o rtnetThriftClient |
---|
Note:
See
TracBrowser
for help on using the repository browser.