Sync with 5.1.0
[deliverable/titan.core.git] / regression_test / CRTR00015758 / Makefile
1 ###############################################################################
2 # Copyright (c) 2000-2014 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
7 ###############################################################################
8 TOPDIR := ..
9 include ../Makefile.regression
10
11 # WARNING! This Makefile can be used with GNU make only.
12 # Other versions of make may report syntax errors in it.
13
14 #
15 # Do NOT touch this line...
16 #
17 .PHONY: all archive check clean dep objects
18
19 .SUFFIXES: .d
20
21 #
22 # Set these variables...
23 #
24
25 #export LD_LIBRARY_PATH:=$(TTCN3_DIR)/lib:$(LD_LIBRARY_PATH)
26
27
28 # Flags for dependency generation
29 CXXDEPFLAGS = -MM
30
31 # Execution mode: (either ttcn3 or ttcn3-parallel)
32 TTCN3_LIB = ttcn3$(RT2_SUFFIX)-parallel$(DYNAMIC_SUFFIX)
33 #-dynamic
34
35 #
36 # You may change these variables. Add your files if necessary...
37 #
38
39 # TTCN-3 modules of this project:
40 TTCN3_MODULES = no.ttcn
41
42 # ASN.1 modules of this project:
43 ASN1_MODULES =
44
45 # C++ source & header files generated from the TTCN-3 & ASN.1 modules of
46 # this project:
47 GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
48 GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
49
50 # C/C++ Source & header files of Test Ports, external functions and
51 # other modules:
52 USER_SOURCES =
53 USER_HEADERS = $(USER_SOURCES:.cc=.hh)
54
55 # Object files of this project that are needed for the executable test suite:
56 OBJECTS = $(GENERATED_OBJECTS) $(USER_OBJECTS)
57
58 GENERATED_OBJECTS = $(GENERATED_SOURCES:.cc=.o)
59
60 USER_OBJECTS = $(USER_SOURCES:.cc=.o)
61
62 DEPFILES = $(USER_OBJECTS:.o=.d) $(GENERATED_OBJECTS:.o=.d)
63
64 # Other files of the project (Makefile, configuration files, etc.)
65 # that will be added to the archived source files:
66 OTHER_FILES = Makefile logfilecheck $(wildcard *.cfg)
67
68 # The name of the executable test suite:
69 TARGET = no$(EXESUFFIX)
70
71
72 #
73 # Rules for building the executable...
74 #
75
76 all: $(TARGET) ;
77
78 objects: $(OBJECTS) ;
79
80 $(TARGET): $(GENERATED_SOURCES)
81 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ \
82 -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
83 -L$(OPENSSL_DIR)/lib -lcrypto \
84 -L$(XMLDIR)/lib $($(PLATFORM)_LIBS)
85
86 .cc.o .c.o:
87 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
88
89 .cc.d .c.d:
90 @echo Creating dependency file for '$<'; set -e; \
91 $(CXX) $(CXXDEPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $< \
92 | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
93 [ -s $@ ] || rm -f $@
94
95 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
96 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
97
98 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
99 $(TTCN3_COMPILER) $(COMPILER_FLAGS) $^ - $?
100 touch $@
101
102 clean distclean:
103 -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
104 $(GENERATED_SOURCES) compile $(DEPFILES) \
105 tags *.log
106
107 dep: $(GENERATED_SOURCES) $(USER_SOURCES) ;
108
109 ifeq ($(findstring n,$(MAKEFLAGS)),)
110 ifeq ($(filter clean distclean check compile archive diag,$(MAKECMDGOALS)),)
111 -include $(DEPFILES)
112 endif
113 endif
114
115
116 #
117 # Add your rules here if necessary...
118 #
119 IP := 127.0.0.1
120 run: $(TARGET)
121 # clear the field because logging is in append mode
122 -rm *.log
123 $(TTCN3_DIR)/bin/ttcn3_start no $(ABS_SRC)/config.cfg -ip ${IP}
124 $(TTCN3_DIR)/bin/ttcn3_start no $(ABS_SRC)/trouble.cfg
125 $(ABS_SRC)/logfilecheck
This page took 0.031745 seconds and 5 git commands to generate.