Debian Codegraph @

regression_test/XML/AttributeFormDefault/Makefile

raw symbols SCIP
1 ##############################################################################
2 # Copyright (c) 2000-2021 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 v2.0
5 # which accompanies this distribution, and is available at
6 # https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 #
8 # Contributors:
9 # Bence Janos Szabo – initial implementation
10 #
11 ##############################################################################
12 TOPDIR = ../..
13 include ../../Makefile.regression
14
15 # WARNING! This Makefile can be used with GNU make only.
16 # Other versions of make may report syntax errors in it.
17
18 #
19 # Do NOT touch this line...
20 #
21 .PHONY: all archive check clean dep objects
22
23 .SUFFIXES: .d
24
25 #
26 # Set these variables...
27 #
28
29 # Flags for the C++ preprocessor (and makedepend as well):
30 #CPPFLAGS +=
31
32 # Flags for dependency generation
33 CXXDEPFLAGS = -MM
34
35 # Flags for the C++ compiler:
36 CXXFLAGS += -Wall
37
38 # Flags for the linker:
39 #LDFLAGS +=
40
41 # Flags for the TTCN-3 and ASN.1 compiler:
42 #COMPILER_FLAGS +=
43
44 # Execution mode: (either ttcn3 or ttcn3-parallel)
45 TTCN3_LIB = ttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX)
46
47 #
48 # You may change these variables. Add your files if necessary...
49 #
50
51 # TTCN-3 modules of this project:
52 TTCN3_MODULES = AttributeFormDefaultWithoutNs.ttcn AttributeFormDefaultWithNs.ttcn AttributeFormWithoutNs.ttcn AttributeFormWithNs.ttcn
53
54 # ASN.1 modules of this project:
55 ASN1_MODULES =
56
57 # C++ source & header files generated from the TTCN-3 & ASN.1 modules of
58 # this project:
59 GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) $(ASN1_MODULES:.asn=.cc)
60 GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
61 ifdef SPLIT_TO_SLICES
62 POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
63 POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
64 GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
65 GENERATED_SOURCES += $(GENERATED_SOURCES2)
66 endif
67 # C/C++ Source & header files of Test Ports, external functions and
68 # other modules:
69 USER_SOURCES =
70 USER_HEADERS = $(USER_SOURCES:.cc=.hh)
71
72 # Object files of this project that are needed for the executable test suite:
73 OBJECTS = $(GENERATED_OBJECTS) $(USER_OBJECTS)
74
75 GENERATED_OBJECTS = $(GENERATED_SOURCES:.cc=.o)
76
77 USER_OBJECTS = $(USER_SOURCES:.cc=.o)
78
79 DEPFILES = $(USER_OBJECTS:.o=.d) $(GENERATED_OBJECTS:.o=.d)
80
81 # Other files of the project (Makefile, configuration files, etc.)
82 # that will be added to the archived source files:
83 OTHER_FILES = Makefile
84
85 # The name of the executable test suite:
86 TARGET = AttributeFormDefault
87
88 #
89 # Rules for building the executable...
90 #
91
92 all: $(TARGET) ;
93
94 objects: $(OBJECTS) compile;
95
96 $(TARGET): $(OBJECTS)
97 if $(CXX) $(LDFLAGS) -o $@ $^ \
98 -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
99 -L$(OPENSSL_DIR)/lib -lcrypto \
100 -L$(XMLDIR)/lib $($(PLATFORM)_LIBS); \
101 then : ; else $(TTCN3_DIR)/bin/titanver $(OBJECTS); exit 1; fi
102
103 .cc.o .c.o:
104 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
105
106 .cc.d .c.d:
107 @echo Creating dependency file for '$<'; set -e; \
108 $(CXX) $(CXXDEPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $< \
109 | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
110 [ -s $@ ] || rm -f $@
111
112 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
113 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
114
115 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
116 $(TTCN3_COMPILER) $(COMPILER_FLAGS) $^ - $?
117 touch $@
118
119 clean distclean:
120 -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
121 $(GENERATED_SOURCES) compile $(DEPFILES) \
122 tags *.log
123
124 dep: $(GENERATED_SOURCES) $(USER_SOURCES) ;
125
126 ifeq ($(findstring n,$(MAKEFLAGS)),)
127 ifeq ($(filter clean distclean check compile archive diag,$(MAKECMDGOALS)),)
128 -include $(DEPFILES)
129 endif
130 endif
131
132 diag:
133 $(TTCN3_COMPILER) -v 2>&1
134 $(TTCN3_DIR)/bin/mctr_cli -v 2>&1
135 $(CXX) -v 2>&1
136 @echo TTCN3_DIR=$(TTCN3_DIR)
137 @echo OPENSSL_DIR=$(OPENSSL_DIR)
138 @echo XMLDIR=$(XMLDIR)
139 @echo PLATFORM=$(PLATFORM)
140
141 #
142 # Add your rules here if necessary...
143 #
144
145 run: $(TARGET)
146 ./$^ config.cfg
147