| 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 |
# ${MAKEPROG} has the same content as the built-in ${MAKE}, |
| 20 |
# except the special handling of ${MAKE} does not apply. |
| 21 |
# If we used ${MAKE} in the rules below, 'make -n' would succeed once, |
| 22 |
# then fail on every subsequent invocation until a 'make clean' is done. |
| 23 |
|
| 24 |
# Hierarchy |
| 25 |
# a--->e------< |
| 26 |
# | |(b:1) | |
| 27 |
# b<---< | |
| 28 |
# b:1=>c:1| | | |
| 29 |
# c | | |
| 30 |
# c:1=>d:1| | | |
| 31 |
# d>--->------> |
| 32 |
#Result will be: a:Default, b:1, c:1, d:1 e:Default |
| 33 |
MAKEPROG := ${MAKE} |
| 34 |
|
| 35 |
all: CheckTpd |
| 36 |
|
| 37 |
BuildTpd: |
| 38 |
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \ |
| 39 |
-t a.tpd -g |
| 40 |
|
| 41 |
CheckTpd: BuildTpd |
| 42 |
if [ ! -f "./binDefault/Makefile" ] || [ ! -L "./binDefault/aDefault.ttcn" ] || [ -L "./binDefault/a1.ttcn" ]; \ |
| 43 |
then echo "Makefilegen required config test 6 failed: Overall verdict: fail" && exit 1; fi |
| 44 |
if [ ! -L "./binDefault/b1.ttcn" ] || [ -L "./binDefault/bDefault.ttcn" ]; \ |
| 45 |
then echo "Makefilegen required config test 6 failed: Overall verdict: fail" && exit 1; fi |
| 46 |
if [ ! -L "./binDefault/c1.ttcn" ] || [ -L "./binDefault/cDefault.ttcn" ]; \ |
| 47 |
then echo "Makefilegen required config test 6 failed: Overall verdict: fail" && exit 1; fi |
| 48 |
if [ ! -L "./binDefault/d1.ttcn" ] || [ -L "./binDefault/dDefault.ttcn" ]; \ |
| 49 |
then echo "Makefilegen required config test 6 failed: Overall verdict: fail" && exit 1; fi |
| 50 |
if [ ! -L "./binDefault/eDefault.ttcn" ] || [ -L "./binDefault/e1.ttcn" ]; \ |
| 51 |
then echo "Makefilegen required config test 6 failed: Overall verdict: fail" && exit 1; fi |
| 52 |
|
| 53 |
clean: |
| 54 |
-rm -rf binDefault |
| 55 |
|
| 56 |
distclean: clean |
| 57 |
-rm -f *.out |
| 58 |
|
| 59 |
.PHONY: all clean distclean BuildTpd CheckTpd |
| 60 |
|