Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / cfgFile / define / structured / Makefile
index 0273c0f4b25ea5296b094b34e5f1bae0bb5942df..81eaae1623c6fc6f754c3824586c4072720c60b5 100644 (file)
@@ -1,5 +1,5 @@
 ###############################################################################
-# Copyright (c) 2000-2014 Ericsson Telecom AB
+# Copyright (c) 2000-2015 Ericsson Telecom AB
 # All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Eclipse Public License v1.0
 # which accompanies this distribution, and is available at
@@ -20,6 +20,11 @@ DIR_SINGLE := dir_single_mode
 DIR_PARALLEL := dir_parallel_mode
 GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL) 
 
+COVERAGE_FLAG := 
+ifeq ($(COVERAGE), yes)
+  COVERAGE_FLAG += -C
+endif
+
 # List of fake targets:
 .PHONY: all clean run run_single run_parallel runall
 
@@ -28,12 +33,12 @@ all: $(GENERATED_DIRS)
 $(DIR_SINGLE):
        mkdir $@
        cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
-       cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen -s ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
+       cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
        
 $(DIR_PARALLEL):
        mkdir $@
        cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
-       cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
+       cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
 
 run: $(GENERATED_DIRS)
        cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG) 
This page took 0.029226 seconds and 5 git commands to generate.