source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/Makefile @ 61

Last change on this file since 61 was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 3.3 KB
Line 
1ifeq '$(T3DK_TOOL)' 'mmagic'
2BOOST_LIB_SUFFIX  = -mt
3TOOL_SPECIFIC_LIBS  = -lws2_32
4TOOL_SPECIFIC_LDFLAGS = -L/opt/boost-mingw/lib
5else
6BOOST_LIB_SUFFIX  = $(if $(shell uname -o | grep Cygwin),-gcc-mt,-mt)
7endif
8
9# Original STF 370 TTCN-3 source code
10T3DK_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
24T3DK_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
40T3DK_TTCN_SOURCES = $(T3DK_TTCN_SOURCES_STF370) #$(T3DK_TTCN_SOURCES_VALIDATION)
41
42T3DK_ROOT_MODULE  = TestExecution
43
44T3DK_C_SOURCES    = $(wildcard src/*.c)
45T3DK_CXX_SOURCES  = $(T3DK_CXX_TCI_SOURCES) $(T3DK_CXX_TRI_SOURCES)
46T3DK_CXX_TCI_SOURCES  = $(wildcard src/libiot_codets.cpp ../codec/c++/s*.cpp)
47T3DK_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
61T3DK_LIBS   = $(TOOL_SPECIFIC_LIBS) \
62      -lboost_date_time$(BOOST_LIB_SUFFIX) \
63      -lboost_thread$(BOOST_LIB_SUFFIX) \
64      -lboost_regex$(BOOST_LIB_SUFFIX)
65
66T3DK_CDGEN_HEADER       = src/codec.h
67T3DK_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
69T3DK_DEBUG   = 1
70
71CPPFLAGS    = -Isrc \
72      -Isrc/LowerTestAdapter \
73      -Isrc/UpperTestAdapter \
74      -Isrc/Helper \
75      -Isrc/Logger \
76      -Isrc/Dispatcher \
77      -I../codec/c++
78 
79CC      = gcc
80CXX     = g++
81
82CFLAGS      = -g -O2
83CXXFLAGS    = -g -O2
84T3DK_LDFLAGS    = $(TOOL_SPECIFIC_LDFLAGS)
85
86ifeq '$(T3DK_TOOL)' 'mmagic'
87include $(shell mingw32-t3devkit-config --mk)
88else
89ifeq '$(T3DK_TOOL)' 'ttwb'
90include $(shell mingw32-t3devkit-config --mk)
91else
92include $(shell t3devkit-config --mk)
93endif
94endif
95
Note: See TracBrowser for help on using the repository browser.