Debian Codegraph @

regression_test/compileonly/mfgen-tpd/compile_once/Makefile

raw
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 # Szabo, Bence Janos
10 #
11 ##############################################################################
12 TOPDIR := ../../..
13 include $(TOPDIR)/Makefile.regression
14
15 ifdef LCOV
16 COVERAGE_FLAG := -C
17 endif
18
19
20 MAKEPROG := ${MAKE}
21
22 all: Recursive RecursiveAbsolute
23
24 Recursive:
25 -rm -rf a/binDefault b/binDefault c/binDefault && \
26 cd c && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
27 -t c.tpd -cVfgpl && cd binDefault && make shared_objects && \
28 cd ../../b && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
29 -t b.tpd -cVfgpl && cd binDefault && make shared_objects && \
30 cd ../../a && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
31 -t a.tpd -FTrcgpl && cd binDefault && make > compile.txt && \
32 if [ `grep -c "ModuleB\." compile.txt` -ne 4 ] || [ `grep -c "ModuleC\." compile.txt` -ne 5 ]; \
33 then echo "Makefilegen compile once test failed: Overall verdict: fail" && exit 1; fi
34
35 RecursiveAbsolute:
36 -rm -rf a/binDefault b/binDefault c/binDefault && \
37 cd c && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
38 -at c.tpd -cVfgpl && cd binDefault && make shared_objects && \
39 cd ../../b && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
40 -at b.tpd -cVfgpl && cd binDefault && make shared_objects && \
41 cd ../../a && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
42 -at a.tpd -FTrcgpl && cd binDefault && make > compile.txt && \
43 if [ `grep -c "ModuleB\." compile.txt` -ne 4 ] || [ `grep -c "ModuleC\." compile.txt` -ne 5 ]; \
44 then echo "Makefilegen compile once test failed: Overall verdict: fail" && exit 1; fi
45
46 clean:
47 -rm -rf a/binDefault b/binDefault c/binDefault
48
49 distclean: clean
50 -rm -f *.out
51
52 .PHONY: all clean distclean Normal Recursive RecursiveAbsolute
53