Example 'how to make archive' created
[deliverable/titan.core.git] / function_test / Makefile
CommitLineData
d44e3c4f 1##############################################################################
2# Copyright (c) 2000-2016 Ericsson Telecom AB
970ed795
EL
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
d44e3c4f 7#
8# Contributors:
9# Balasko, Jeno
10# Baranyi, Botond
11# Bartha, Norbert
12# Delic, Adam
13# Kovacs, Ferenc
14# Ormandi, Matyas
15# Raduly, Csaba
16#
17##############################################################################
970ed795
EL
18# Makefile to run the non-interactive tests
19DIRS := BER_EncDec RAW_EncDec Text_EncDec XER_EncDec Semantic_Analyser Semantic_Analyser_Csaba Config_Parser
20
21SCRIPTFLAGS :=
22
23# Coverage settings
24LCOVDIR := /mnt/TTCN/Tools/lcov-1.7/usr
25LCOV := no
26ifeq ($(LCOV), yes)
27SCRIPTFLAGS += -coverage
28endif
29# Runtime selection, doesn't have effect on BER/RAW tests yet
30RT2 := no
31ifeq ($(RT2), yes)
32SCRIPTFLAGS += -rt2
33endif
34
35# Your platform. Allowed values: SOLARIS, SOLARIS8, LINUX, FREEBSD, WIN32
36ifndef PLATFORM
37PLATFORM1 := $(shell uname -s)
38PLATFORM2 := $(shell uname -r)
39PLATFORM3 := $(shell uname -m)
40
41ifeq ($(PLATFORM1), SunOS)
42 ifeq ($(PLATFORM2), 5.6)
43 PLATFORM := SOLARIS
44 else
45 PLATFORM := SOLARIS8
46 endif # 5.6
47endif # SunOS
48ifeq ($(PLATFORM1), Linux)
49 PLATFORM := LINUX
50endif # Linux
51ifeq ($(PLATFORM1), FreeBSD)
52 PLATFORM := FREEBSD
53endif # FreeBSD
54ifeq ($(findstring CYGWIN, $(PLATFORM1)), CYGWIN)
55 PLATFORM := WIN32
56endif # CYGWIN
57ifeq ($(PLATFORM1), Interix)
58 PLATFORM := INTERIX
59endif # Interix
60endif # ifndef PLATFORM
61ifndef PLATFORM
62 PLEASE CHECK THE ABOVE PLATFORM SETTINGS!!!
63endif # ifndef PLATFORM
64
65export PLATFORM
66
67all check run: $(DIRS)
68
69.PHONY: $(DIRS)
70
71BER_EncDec:
72 cd $@; ./run_test $(SCRIPTFLAGS)
73
74RAW_EncDec:
75 cd $@; ./run_test $(SCRIPTFLAGS)
76
77Text_EncDec:
78 cd $@; if [ ! -f perl ] ; then ln -s `which perl` perl; fi; ./run_test $(SCRIPTFLAGS)
79
80XER_EncDec:
81 cd $@; ./run_test $(SCRIPTFLAGS)
82
83Semantic_Analyser:
84 cd $@; if [ ! -f perl ] ; then ln -s `which perl` perl; fi; ./run_test_all $(SCRIPTFLAGS)
85
86Semantic_Analyser_Csaba:
87 make run -f Makefile.semantic -C Semantic_Analyser
88
89Config_Parser:
90 cd $@; if [ ! -f perl ] ; then ln -s `which perl` perl; fi; ./run_test $(SCRIPTFLAGS)
91
92profile: $(DIRS)
93 make all
94 $(LCOVDIR)/bin/lcov -d .. -c -o functest_coverage.info
95 $(LCOVDIR)/bin/genhtml -o functest_coverage -t "TITAN Function Test Coverage" functest_coverage.info
96
97# It's a 50-50
98clean:
99 for d in $(DIRS); do if [ -f $$d/Makefile ]; then $(MAKE) -C $$d clean; else : ; fi done
100
101$(CURDIR)/Makefile.personal:
102 ln -s $(CURDIR)/../$(@F) $(CURDIR)/
103include $(CURDIR)/Makefile.personal
This page took 0.027575 seconds and 5 git commands to generate.