Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #
- #
- TOP := ../../..
- TM_PATH := ${TOP}
- include $(TOP)/Common/common.mk
- include $(TOP)/3rdParty/makevars
- $(shell mkdir -p ${OBJ_PATH})
- UnitTest_Srcs = IRSizeConfiguratorTest.cpp
- SRCS = ${UnitTest_Srcs}
- OBJS = $(addprefix ${OBJ_PATH}/, $(addsuffix .o, $(basename $(notdir ${SRCS}))))
- DEPS = $(OBJS:.o=.d)
- CXXFLAGS += -Wno-shadow #catch1
- CXXFLAGS += -I${TM_PATH}/CommonComponents/ \
- -I${TM_PATH}/Common/ \
- -I${TM_PATH}/Common/Utility/ \
- -I${TM_PATH}/Common/DataTypes/ \
- -I${CATCH_INC_PATH} \
- -I${BOOST_INC_PATH} \
- -I${XERCES_INC_PATH} \
- -I${ACE_INC_PATH} \
- -isystem ${RAPIDJSON_INC_PATH}
- COMMON_LIBS = ${TOP}/CommonComponents/IntelligenceReport/${TH_LIB_PATH}/libIntelligenceReport.a \
- ${TOP}/CommonComponents/Logging/${TH_LIB_PATH}/libLogging.a \
- ${TOP}/CommonComponents/Common/${TH_LIB_PATH}/libCommonComponentsCommon.a \
- ${TOP}/Common/Utility/${TH_LIB_PATH}/libCommonUtility.a \
- ${TOP}/Common/DataTypes/${TH_LIB_PATH}/libCommonDataTypes.a \
- ${TOP}/Common/OrgIndustry/${TH_LIB_PATH}/libCommonOrgIndustry.a \
- ${TOP}/Common/AppComponents/${TH_LIB_PATH}/libCommonAppComponents.a \
- ${TOP}/Common/ApiStrings/${TH_LIB_PATH}/libCommonApiStrings.a \
- ${TOP}/CommonComponents/OrgDatabaseConfigs/${TH_LIB_PATH}/libCommonComponentsOrgDatabaseConfigs.a \
- ${TOP}/Common/System/${TH_LIB_PATH}/libCommonSystem.a \
- $(TOP)/CommonComponents/Thrift/cpp/${TH_LIB_PATH}/libTmThrift.a \
- ${TOP}/CommonComponents/CentralAttributeRepository/${TH_LIB_PATH}/libCommonComponentsCentralAttributeRepository.a \
- $(TOP)/CommonComponents/Synergy/${TH_LIB_PATH}/libSynergy.a \
- $(TOP)/CommonComponents/PropertyBucket/${TH_LIB_PATH}/libPropertyBucket.a \
- ${TOP}/CommonComponents/THDatabase/${TH_LIB_PATH}/libTHDatabase.a \
- ${TOP}/Common/Crypto/${TH_LIB_PATH}/libCommonCrypto.a \
- ${TOP}/Common/Codec/${TH_LIB_PATH}/libCommonCodec.a
- LIBS = $(COMMON_LIBS) \
- ${BOOST_SYSTEMLIB_STATIC} \
- ${BOOST_THREADLIB_STATIC} \
- ${ACE_LIB} \
- ${THRIFT_LIBS} \
- ${SCRIBE_LIB} \
- ${OPENSSL_LIBS} \
- ${LIBC_EXT} \
- ${BOOST_REGEXLIB_STATIC} \
- ${BOOST_DATE_TIMELIB_STATIC} \
- ${CSG_STATIC_LIB} \
- ${BOOST_FILESYSTEM_LIBS_STATIC} \
- ${XERCES_LIB} \
- ${ICONV_STATIC_LIB}
- BIN = ir_unit_test
- all : bin test
- bin : $(BIN)
- ${OBJ_PATH}/%.o : %.cpp
- $(CXX) $(CXXFLAGS) $< -c -o $@
- ir_unit_test: ${OBJS} ${LIBS}
- $(CXX) ${CXXFLAGS} ${CRYPTOMATHIC_LDFLAGS} -lpthread -lodbc -o $@ ${OBJS} -Wl,--start-group ${LIBS} -Wl,--end-group \
- -Xlinker -rpath -Xlinker ${ACE_LIB_PATH} \
- -Xlinker -rpath -Xlinker ${XERCES_LIB_PATH}
- test: ir_unit_test
- ./$< -r junit -o unittest_results.xml; RC=$$?; if [ $$RC -gt 128 ]; then exit $$RC; fi
- .PHONY: test all bin
- -include ${DEPS}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement