1 ##############################################################################
2 # Copyright (c) 2000-2016 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
12 ##############################################################################
14 include $(TOPDIR
)/Makefile.regression
16 FILES
:= references.ttcn references.cfg
17 RUNNABLE
:= references
19 DIR_SINGLE
:= dir_single_mode
20 DIR_PARALLEL
:= dir_parallel_mode
21 GENERATED_DIRS
:= $(DIR_SINGLE
) $(DIR_PARALLEL
)
24 ifeq ($(COVERAGE
), yes
)
29 ifeq ($(PLATFORM
), WIN32
)
30 export PATH
:=$(TTCN3_DIR
)/lib
:$(PATH
):$(ABS_SRC
)/$(DIR_SINGLE
):$(ANS_SRC
)/$(DIR_PARALLEL
)
32 export LD_LIBRARY_PATH
:=$(LD_LIBRARY_PATH
):$(ABS_SRC
)/$(DIR_SINGLE
):$(ANS_SRC
)/$(DIR_PARALLEL
)
38 # List of fake targets:
39 .PHONY
: all clean run run_single run_parallel runall
41 all: $(GENERATED_DIRS
)
45 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
46 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) -s .
/* && $(MAKE_PROG
)
50 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
51 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) .
/* && $(MAKE_PROG
)
53 run
: $(GENERATED_DIRS
)
54 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
55 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
57 # To run all tests, possibly in parallel
58 run_single
: $(DIR_SINGLE
)
59 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
60 run_parallel
: $(DIR_PARALLEL
)
61 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
62 runall
: run_single run_parallel
65 rm -rf
$(GENERATED_DIRS
)