source: ntrip/trunk/GnssCenter/thrift/test_rtnet/Makefile@ 4938

Last change on this file since 4938 was 4938, checked in by mervart, 12 years ago
File size: 796 bytes
Line 
1
2BOOST_DIR = /usr/local/include
3THRIFT_DIR = /usr/local/include/thrift
4LIB_DIR = /usr/local/lib
5DEFS = -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H
6
7INC = -I$(THRIFT_DIR) -I$(BOOST_DIR)
8
9GEN_SRC = client.cpp \
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
13
14GEN_OBJ = $(patsubst %.cpp,%.o, $(GEN_SRC))
15
16.PHONY: all clean
17
18all: gen-cpp client
19
20gen-cpp: rtnet.thrift
21 thrift -r -gen cpp rtnet.thrift
22
23%.o: %.cpp
24 $(CXX) -Wall -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H $(INC) -c $< -o $@
25
26## client: client.o $(GEN_OBJ)
27## $(CXX) $^ -o $@ -L/usr/local/lib -lthrift
28
29client: client.o $(GEN_OBJ)
30 $(CXX) $^ -o $@ /usr/local/lib/libthrift.a
31
32clean:
33 $(RM) *.o gen-cpp/*.o client
Note: See TracBrowser for help on using the repository browser.