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 TTCN_MODULE
:= array_index.ttcn
19 CFG
:= array_index.cfg
20 FILES
:= $(TTCN_MODULE
) $(CFG
) $(PORT
).
cc $(PORT
).hh
21 RUNNABLE
:= array_index
22 DIR_SINGLE
:= dir_single_mode
23 DIR_PARALLEL
:= dir_parallel_mode
24 GENERATED_DIRS
:= $(DIR_SINGLE
) $(DIR_PARALLEL
)
27 ifeq ($(COVERAGE
), yes
)
32 ifeq ($(PLATFORM
), WIN32
)
33 export PATH
+=:$(TTCN3_DIR
)/lib
:$(ABS_SRC
)/$(DIR_SINGLE
):$(ABS_SRC
)/$(DIR_PARALLEL
):
35 export LD_LIBRARY_PATH
+=:$(ABS_SRC
)/$(DIR_SINGLE
):$(ABS_SRC
)/$(DIR_PARALLEL
):
41 # List of fake targets:
42 .PHONY
: all clean run run_single run_parallel runall
44 all: $(GENERATED_DIRS
)
48 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
49 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) -s
$(TTCN_MODULE
) $(PORT
) && $(MAKE_PROG
)
53 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
54 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) $(TTCN_MODULE
) $(PORT
) && $(MAKE_PROG
)
56 run
: $(GENERATED_DIRS
)
57 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
58 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
60 # To run all tests, possibly in parallel
61 run_single
: $(DIR_SINGLE
)
62 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
63 run_parallel
: $(DIR_PARALLEL
)
64 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
65 runall
: run_single run_parallel
68 rm -rf
$(GENERATED_DIRS
)