Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / cfgFile / testport_parameters / Makefile
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 ###############################################################################
8 TOPDIR := ../../
9 include $(TOPDIR)/Makefile.regression
10
11 TTCN_MODULE := array_index.ttcn
12 PORT := PCOType
13 CFG := array_index.cfg
14 FILES := $(TTCN_MODULE) $(CFG) $(PORT).cc $(PORT).hh
15 RUNNABLE := array_index
16 DIR_SINGLE := dir_single_mode
17 DIR_PARALLEL := dir_parallel_mode
18 GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL)
19
20 COVERAGE_FLAG :=
21 ifeq ($(COVERAGE), yes)
22 COVERAGE_FLAG += -C
23 endif
24
25 MAKE_PROG := $(MAKE)
26
27 # List of fake targets:
28 .PHONY: all clean run run_single run_parallel runall
29
30 all: $(GENERATED_DIRS)
31
32 dir_single_mode:
33 mkdir $@
34 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
35 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s $(TTCN_MODULE) $(PORT) && $(MAKE_PROG)
36
37 dir_parallel_mode:
38 mkdir $@
39 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
40 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(TTCN_MODULE) $(PORT) && $(MAKE_PROG)
41
42 run: $(GENERATED_DIRS)
43 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
44 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG)
45
46 # To run all tests, possibly in parallel
47 run_single: $(DIR_SINGLE)
48 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
49 run_parallel: $(DIR_PARALLEL)
50 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG)
51 runall: run_single run_parallel
52
53 clean distclean:
54 rm -rf $(GENERATED_DIRS)
55
This page took 0.030743 seconds and 5 git commands to generate.