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
13 ##############################################################################
15 include $(TOPDIR
)/Makefile.regression
17 FILES
:= references.ttcn A.asn references.cfg
18 RUNNABLE
:= references
20 DIR_SINGLE
:= dir_single_mode
21 DIR_PARALLEL
:= dir_parallel_mode
22 GENERATED_DIRS
:= $(DIR_SINGLE
) $(DIR_PARALLEL
)
25 ifeq ($(COVERAGE
), yes
)
30 ifeq ($(PLATFORM
), WIN32
)
31 export PATH
+=:$(TTCN3_DIR
)/lib
:$(ABS_SRC
)/$(DIR_SINGLE
):$(ABS_SRC
)/$(DIR_PARALLEL
):
33 export LD_LIBRARY_PATH
+=:$(ABS_SRC
)/$(DIR_SINGLE
):$(ABS_SRC
)/$(DIR_PARALLEL
):
39 # List of fake targets:
40 .PHONY
: all clean run run_single run_parallel runall
42 all: $(GENERATED_DIRS
)
46 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
47 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) $(SPLIT_FLAG
) -s .
/* && $(MAKE_PROG
)
51 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
52 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) $(SPLIT_FLAG
) .
/* && $(MAKE_PROG
)
54 run
: $(GENERATED_DIRS
)
55 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
56 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
58 # To run all tests, possibly in parallel
59 run_single
: $(DIR_SINGLE
)
60 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
61 run_parallel
: $(DIR_PARALLEL
)
62 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
63 runall
: run_single run_parallel
66 rm -rf
$(GENERATED_DIRS
)