1 ###############################################################################
2 # Copyright (c) 2000-2015 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 ###############################################################################
9 include $(TOPDIR
)/Makefile.regression
15 # ${MAKEPROG} has the same content as the built-in ${MAKE},
16 # except the special handling of ${MAKE} does not apply.
17 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
18 # then fail on every subsequent invocation until a 'make clean' is done.
21 DIRLIST
:= buildconfig_param invalid_buildconfig_param invalid_buildconfig_tpd HP79745 HQ56829 HQ56834 HQ56848 library HR30356 flagTest HR30365 dependency_check
24 ifeq ($(findstring c
,$(MFGEN_FLAGS
)),) # no -c
25 # Build in "reverse" order to reduce false positives
26 all: BuildConsumer BuildSupplier BuildSubplier HP35732 HQ56829 BuildDirs HQ60308 SearchPaths
28 # Build from supplier to consumer because central dirs must be ready
29 # when the toplevel is built
30 all: BuildSubplier BuildSupplier BuildConsumer COMMON NAS HP35732 HQ56829 BuildDirs SearchPaths
35 WORKING_DIR
:= $(shell pwd
)
37 # The run target is not normally used in compileonly.
38 # It can be built manually.
43 @for
dir in
$(DIRLIST
); do
$(MAKE
) -C
$$dir || exit
; done
45 BuildConsumer
: /tmp
/issue
46 @echo
-e
"#\n# Build Consumer\n#"
47 mkdir
-p consumer
/bin
&& cd consumer
/bin \
48 && if
[ ! -h handmade.ttcn
]; then ln
-s ..
/..
/handmade.ttcn .
/ ; else : ; fi\
49 && $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-fD
$(MFGEN_FLAGS
) $(COVERAGE_FLAG
) -t ..
/consumer-ref-supplier-Default.tpd handmade.ttcn \
53 @echo
-e
"#\n# Build Supplier\n#"
54 mkdir
-p supplier
/bin
&& cd supplier
/bin \
55 && $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-fD
$(MFGEN_FLAGS
) $(COVERAGE_FLAG
) -t ..
/supplier24.tpd \
58 BuildSubplier
: /tmp
/issue
59 @echo
-e
"#\n# Build Subplier (leaf project)\n#"
60 mkdir
-p subplier
/bin
&& cd subplier
/bin \
61 && $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-fD
$(MFGEN_FLAGS
) $(COVERAGE_FLAG
) -t ..
/subplier.tpd \
65 mkdir
-p
$@
&& cd
$@ \
66 && $(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 \
69 HQ56829 HQ56834 HQ56848
:
74 && $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-fD
-t counter.tpd \
78 mkdir
-p COMMON
/bin
&& cd COMMON
/bin \
79 && $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-fD
$(MFGEN_FLAGS
) $(COVERAGE_FLAG
) -t ..
/ProtocolModules_Common.tpd \
83 mkdir
-p NAS_EPS_v9.7
.0_CNL113729
/bin
&& cd NAS_EPS_v9.7
.0_CNL113729
/bin \
84 && $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-fD
$(MFGEN_FLAGS
) $(COVERAGE_FLAG
) -t ..
/NAS_EPS_v9.7
.0_CNL113729.tpd \
88 cd search_paths
/main
&& \
89 $(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
&& \
96 @for
dir in
$(DIRLIST
); do
$(MAKE
) -C
$$dir $@ || exit
; done
97 if
[ -f HQ60308
/Makefile
]; then
$(MAKEPROG
) -C HQ60308
$@ || exit
; else : ; fi
98 -rm -rf consumer
/bin supplier
/bin subplier
/bin HP35732 COMMON
/bin NAS_EPS_v9.7
.0_CNL113729
/bin HQ60308
/Makefile search_paths
/main
/bin
103 .PHONY
: all clean distclean run BuildDirs BuildConsumer BuildSupplier BuildSubplier HP35732 HQ56829 HQ56834 HQ56848 COMMON NAS HQ60308 SearchPaths