[22] | 1 | ifeq '$(T3DK_TOOL)' 'mmagic' |
---|
| 2 | BOOST_LIB_SUFFIX = -mt |
---|
| 3 | TOOL_SPECIFIC_LIBS = -lws2_32 |
---|
| 4 | TOOL_SPECIFIC_LDFLAGS = -L/opt/boost-mingw/lib |
---|
| 5 | else |
---|
| 6 | BOOST_LIB_SUFFIX = $(if $(shell uname -o | grep Cygwin),-gcc-mt,-mt) |
---|
| 7 | endif |
---|
| 8 | |
---|
| 9 | # Original STF 370 TTCN-3 source code |
---|
| 10 | T3DK_TTCN_SOURCES_STF370 = $(wildcard validation/*.ttcn \ |
---|
| 11 | ../../LibCommon/*.ttcn \ |
---|
| 12 | ../LibSip/ttcn/LibSip_Interface.ttcn \ |
---|
| 13 | ../LibSip/ttcn/LibSip_SDPTypes.ttcn \ |
---|
| 14 | ../LibSip/ttcn/LibSip_SIPTypesAndValues.ttcn \ |
---|
| 15 | ../codec/validation/LibSip_DummyXMLTypes.ttcn \ |
---|
| 16 | ../ttcn/LibIot/*.ttcn \ |
---|
| 17 | ../ttcn/LibUpperTester/LibUpperTester.ttcn \ |
---|
| 18 | ../ttcn/LibIms_ConfigAndTrigger/LibIms_UpperTester.ttcn \ |
---|
| 19 | ../ttcn/AtsImsIot/AtsImsIot_Functions.ttcn \ |
---|
| 20 | ../ttcn/AtsImsIot/AtsImsIot_TypesAndValues.ttcn \ |
---|
| 21 | ../ttcn/AtsImsIot/AtsImsIot_TestConfiguration.ttcn ) |
---|
| 22 | |
---|
| 23 | # Modified STF 370 TTCN-3 source code to make adapter running properly |
---|
| 24 | T3DK_TTCN_SOURCES_VALIDATION = $(wildcard validation/*.ttcn \ |
---|
| 25 | validation/LibCommon/*.ttcn \ |
---|
| 26 | validation/LibIot/*.ttcn \ |
---|
| 27 | validation/LibUpperTester/LibUpperTester.ttcn \ |
---|
| 28 | validation/generic_interface_configuration/Interface_configuration.ttcn \ |
---|
| 29 | validation/LibIms_ConfigAndTrigger/LibIms_UpperTester.ttcn \ |
---|
| 30 | validation/AtsImsIot/AtsImsIot_TypesAndValues.ttcn \ |
---|
| 31 | validation/AtsImsIot/AtsImsIot_TestSystem.ttcn \ |
---|
| 32 | validation/AtsImsIot/AtsImsIot_TestConfiguration.ttcn \ |
---|
| 33 | validation/AtsImsIot/AtsImsIot_Functions.ttcn \ |
---|
| 34 | validation/AtsImsIot/AtsImsIot_Templates.ttcn \ |
---|
| 35 | ../codec/validation/LibSip_Interface.ttcn \ |
---|
| 36 | ../codec/validation/LibSip_SDPTypes.ttcn \ |
---|
| 37 | ../codec/validation/LibSip_SIPTypesAndValues.ttcn \ |
---|
| 38 | ../codec/validation/LibSip_DummyXMLTypes.ttcn ) |
---|
| 39 | |
---|
| 40 | T3DK_TTCN_SOURCES = $(T3DK_TTCN_SOURCES_STF370) #$(T3DK_TTCN_SOURCES_VALIDATION) |
---|
| 41 | |
---|
| 42 | T3DK_ROOT_MODULE = TestExecution |
---|
| 43 | |
---|
| 44 | T3DK_C_SOURCES = $(wildcard src/*.c) |
---|
| 45 | T3DK_CXX_SOURCES = $(T3DK_CXX_TCI_SOURCES) $(T3DK_CXX_TRI_SOURCES) |
---|
| 46 | T3DK_CXX_TCI_SOURCES = $(wildcard src/libiot_codets.cpp ../codec/c++/s*.cpp) |
---|
| 47 | T3DK_CXX_TRI_SOURCES = $(wildcard src/init.cpp \ |
---|
| 48 | src/Ports/*.cpp \ |
---|
| 49 | src/LowerTestAdapter/*.cpp \ |
---|
| 50 | src/Messages/*.cpp \ |
---|
| 51 | src/PacketFilter/*.cpp \ |
---|
| 52 | src/UpperTestAdapter/*.cpp \ |
---|
| 53 | src/UpperTestAdapter/Processors/*.cpp \ |
---|
| 54 | src/UpperTestAdapter/TriggerCommandsOffLine/*.cpp \ |
---|
| 55 | src/UpperTestAdapter/TriggerCommandsGUI/*.cpp \ |
---|
| 56 | src/Helper/*.cpp \ |
---|
| 57 | src/Logger/*.cpp \ |
---|
| 58 | src/Dispatcher/*.cpp \ |
---|
| 59 | ) |
---|
| 60 | |
---|
| 61 | T3DK_LIBS = $(TOOL_SPECIFIC_LIBS) \ |
---|
| 62 | -lboost_date_time$(BOOST_LIB_SUFFIX) \ |
---|
| 63 | -lboost_thread$(BOOST_LIB_SUFFIX) \ |
---|
| 64 | -lboost_regex$(BOOST_LIB_SUFFIX) |
---|
| 65 | |
---|
| 66 | T3DK_CDGEN_HEADER = src/codec.h |
---|
| 67 | T3DK_CODETS = $(wildcard src/codec.h src/libiot_codets.h src/libiot_codets.cpp ../codec/c++/s*.h ../codec/c++/s*.cpp ../codec/c++/libcommon_codets.h) |
---|
| 68 | |
---|
| 69 | T3DK_DEBUG = 1 |
---|
| 70 | |
---|
| 71 | CPPFLAGS = -Isrc \ |
---|
| 72 | -Isrc/LowerTestAdapter \ |
---|
| 73 | -Isrc/UpperTestAdapter \ |
---|
| 74 | -Isrc/Helper \ |
---|
| 75 | -Isrc/Logger \ |
---|
| 76 | -Isrc/Dispatcher \ |
---|
| 77 | -I../codec/c++ |
---|
| 78 | |
---|
| 79 | CC = gcc |
---|
| 80 | CXX = g++ |
---|
| 81 | |
---|
| 82 | CFLAGS = -g -O2 |
---|
| 83 | CXXFLAGS = -g -O2 |
---|
| 84 | T3DK_LDFLAGS = $(TOOL_SPECIFIC_LDFLAGS) |
---|
| 85 | |
---|
| 86 | ifeq '$(T3DK_TOOL)' 'mmagic' |
---|
| 87 | include $(shell mingw32-t3devkit-config --mk) |
---|
| 88 | else |
---|
| 89 | ifeq '$(T3DK_TOOL)' 'ttwb' |
---|
| 90 | include $(shell mingw32-t3devkit-config --mk) |
---|
| 91 | else |
---|
| 92 | include $(shell t3devkit-config --mk) |
---|
| 93 | endif |
---|
| 94 | endif |
---|
| 95 | |
---|