Debian Codegraph @

regression_test/compileonly/mfgen-tpd/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 # Balasko, Jeno
10 # Beres, Szabolcs
11 # Delic, Adam
12 # Ormandi, Matyas
13 # Raduly, Csaba
14 # Szabados, Kristof
15 # Szabo, Bence Janos
16 # Szalay, Akos
17 #
18 ##############################################################################
19 TOPDIR := ../..
20 include $(TOPDIR)/Makefile.regression
21
22 ifdef LCOV
23 COVERAGE_FLAG := -C
24 endif
25
26 # ${MAKEPROG} has the same content as the built-in ${MAKE},
27 # except the special handling of ${MAKE} does not apply.
28 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
29 # then fail on every subsequent invocation until a 'make clean' is done.
30 MAKEPROG := ${MAKE}
31
32 DIRLIST := buildconfig_param invalid_buildconfig_param invalid_buildconfig_tpd \
33 HP79745 HQ56829 HQ56834 HQ56848 library HR30356 flagTest HR30365 dependency_check \
34 required_config required_config_v2 disablePredefinedExternalFolder \
35 makefileScript diff_tpd_name_error enable_legacy_encoding disable_oer \
36 disableUserInformation freeTextLinkerOptions oop_features charstring_compat
37
38 ifdef DYN
39 DIRS += required_config_v3 splitting compile_once
40 endif
41
42 # The default target.
43 ifeq ($(findstring c,$(MFGEN_FLAGS)),) # no -c
44 # Build in "reverse" order to reduce false positives
45 all: BuildConsumer BuildSupplier BuildSubplier HP35732 HQ56829 BuildDirs HQ60308 SearchPaths
46 else
47 # Build from supplier to consumer because central dirs must be ready
48 # when the toplevel is built
49 all: BuildSubplier BuildSupplier BuildConsumer COMMON NAS HP35732 HQ56829 BuildDirs SearchPaths
50
51 .NOTPARALLEL:
52 endif
53
54 WORKING_DIR := $(shell pwd)
55
56 # The run target is not normally used in compileonly.
57 # It can be built manually.
58 run:
59 perl runner.pl
60
61 BuildDirs:
62 @for dir in $(DIRLIST); do $(MAKE) -C $$dir || exit; done
63
64 BuildConsumer: /tmp/issue
65 @echo -e "#\n# Build Consumer\n#"
66 mkdir -p consumer/bin && cd consumer/bin \
67 && if [ ! -h handmade.ttcn ]; then ln -s ../../handmade.ttcn ./ ; else : ; fi\
68 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD $(MFGEN_FLAGS) $(COVERAGE_FLAG) -t ../consumer-ref-supplier-Default.tpd handmade.ttcn \
69 && $(MAKEPROG)
70
71 BuildSupplier:
72 @echo -e "#\n# Build Supplier\n#"
73 mkdir -p supplier/bin && cd supplier/bin \
74 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD $(MFGEN_FLAGS) $(COVERAGE_FLAG) -t ../supplier24.tpd \
75 && $(MAKEPROG)
76
77 BuildSubplier: /tmp/issue
78 @echo -e "#\n# Build Subplier (leaf project)\n#"
79 mkdir -p subplier/bin && cd subplier/bin \
80 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD $(MFGEN_FLAGS) $(COVERAGE_FLAG) -t ../subplier.tpd \
81 && $(MAKEPROG)
82
83 HP35732:
84 mkdir -p $@ && cd $@ \
85 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD $(MFGEN_FLAGS) $(COVERAGE_FLAG) -t ../NAS_EPS_v9.7.0_CNL113729/test/NAS_EPS_v9.7.0_CNL113729_test.tpd \
86 && $(MAKEPROG)
87
88 HQ56829 HQ56834 HQ56848:
89 $(MAKEPROG) -C $@
90
91 HQ60308:
92 cd $@ \
93 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD -t counter.tpd \
94 && $(MAKEPROG)
95
96 COMMON:
97 mkdir -p COMMON/bin && cd COMMON/bin \
98 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD $(MFGEN_FLAGS) $(COVERAGE_FLAG) -t ../ProtocolModules_Common.tpd \
99 && $(MAKEPROG)
100
101 NAS:
102 mkdir -p NAS_EPS_v9.7.0_CNL113729/bin && cd NAS_EPS_v9.7.0_CNL113729/bin \
103 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -fD $(MFGEN_FLAGS) $(COVERAGE_FLAG) -t ../NAS_EPS_v9.7.0_CNL113729.tpd \
104 && $(MAKEPROG)
105
106 SearchPaths:
107 cd search_paths/main && \
108 $(TTCN3_DIR)/bin/ttcn3_makefilegen -fg -t Main.tpd -I/something -I$(WORKING_DIR)/search_paths/dep3/Test3/ -I$(WORKING_DIR)/search_paths/dep2/Test2 -I$(WORKING_DIR)/search_paths/dep2/dep2_1/Test2_1 && \
109 cd bin && $(MAKEPROG)
110
111 /tmp/issue:
112 -touch $@
113
114 clean:
115 @for dir in $(DIRLIST); do $(MAKE) -C $$dir $@ || exit; done
116 if [ -f HQ60308/Makefile ]; then $(MAKEPROG) -C HQ60308 $@ || exit ; else : ; fi
117 -rm -rf consumer/bin supplier/bin subplier/bin HP35732 COMMON/bin NAS_EPS_v9.7.0_CNL113729/bin HQ60308/Makefile search_paths/main/bin
118
119 distclean: clean
120 -rm -f *.out || exit; done
121 @for dir in $(DIRLIST); do $(MAKE) -C $$dir $@ || exit; done
122
123 .PHONY: all clean distclean run BuildDirs BuildConsumer BuildSupplier BuildSubplier HP35732 HQ56829 HQ56834 HQ56848 COMMON NAS HQ60308 SearchPaths
124