# ================================================================
#Makefile for tcaplus example
#
# Date:   2016-09-14
#
# Copyright (C) 2016 Architechure IRED TENCENT
#
# ================================================================

CPPFILE=$(wildcard *.cpp)
CCFILE=$(wildcard *.cc)

#GENERATE_FILE=$(shell ./conv.sh )

LIBS += -L$(PROTOBUF_HOME)/lib/lib64_release -L$(TCAPLUS_HOME)/lib -L$(TCAPLUS_PB_HOME)/lib/ -L$(TSF4G_HOME)/lib64 \
-Wl,-Bstatic -ltcaplusprotobufapi -lprotobuf -ltrapidxml -Wl,-Bdynamic -lpthread -lz -ldl -lcrypto -lanl

INC =-I$(PROTOBUF_HOME)/include/include -I$(TCAPLUS_PB_HOME)/include/tcaplus_pb_api/ -I../../../C++_common_for_pb


.PHONY: all clean 

all:
	g++ -g -o mytest $(CCFILE) $(CPPFILE) $(INC) ${LIBS}  

clean:
	rm -f mytest     mytest.log*
