implemented new code splitting mechanism (split to equal slices)
[deliverable/titan.core.git] / regression_test / acceptance_test / Fibonacci / 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# Delic, Adam
11# Gecse, Roland
12# Raduly, Csaba
14e21cff 13# Szabo, Bence Janos
d44e3c4f 14#
15##############################################################################
970ed795
EL
16# This Makefile was generated by the compiler
17# of the TTCN-3 Test Executor version 1.4.pl3
18# for Roland Gecse (ethrge@pauler) on Wed Aug 6 15:10:39 2003
19
20# The following make commands are available:
21# - make, make all Builds the executable test suite.
22# - make compile Translates TTCN-3 and ASN.1 modules to C++.
23# - make clean Removes all generated files.
24# - make dep Creates/updates dependency list.
25# - make archive Archives all source files.
26
27#
28# Set these variables...
29#
30
31# The path of your TTCN-3 Test Executor installation:
32# Uncomment this line to override the environment variable.
33# TTCN3_DIR =
34
35# Your platform: (SOLARIS, LINUX, FREEBSD or WIN32)
36PLATFORM = SOLARIS
37
38# Your C++ compiler:
39CXX = /mnt/projects/TTCN/Tools/gcc-3.2.3-sol8/bin/g++
40
41# Flags for the C++ preprocessor (and makedepend as well):
42CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include
43
44# Flags for the C++ compiler:
45CXXFLAGS = -Wall
46
47# Flags for the linker:
48LDFLAGS =
49
50# Flags for the TTCN-3 and ASN.1 compiler:
51COMPILER_FLAGS = -L
52
53# Execution mode: (either ttcn3 or ttcn3-parallel)
54TTCN3_LIB = ttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX)
55
56# The path of your OpenSSL installation:
57# If you do not have your own one, leave it unchanged.
58OPENSSL_DIR = $(TTCN3_DIR)
59
60# Directory to store the archived source files:
61# Note: you can set any directory except ./archive
62ARCHIVE_DIR = ./backup
63
64#
65# You may change these variables. Add your files if necessary...
66#
67
68# The TTCN-3 modules needed for this project:
69TTCN3_MODULES = Fibonacci.ttcn
70
71# The ASN.1 modules needed for this project:
72ASN1_MODULES =
73
74# C++ source & header files generated by TTCN-3 & ASN.1 compilers:
75GENERATED_SOURCES = Fibonacci.cc
76GENERATED_HEADERS = Fibonacci.hh
77ifdef CODE_SPLIT
78GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
14e21cff 79else ifdef SPLIT_TO_SLICES
80POSTFIXES := $(foreach file, $(SPLIT_TO_SLICES), $(addsuffix $(file), _part_))
81POSTFIXES := $(foreach file, $(POSTFIXES), $(addprefix $(file), .cc))
82GENERATED_SOURCES2 := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), $(POSTFIXES)))
83GENERATED_SOURCES += $(GENERATED_SOURCES2)
970ed795
EL
84endif
85
86# Source & header files of Test Ports and your other modules:
87USER_SOURCES =
88USER_HEADERS =
89
90# All object files needed for the executable test suite:
91OBJECTS = Fibonacci.o
92
93# The name of the executable test suite:
94TARGET = Fibonacci
95
96#
97# Do not modify these unless you know what you are doing...
98#
99SOLARIS_LIBS = -lxnet
100LINUX_LIBS =
101FREEBSD_LIBS =
102WIN32_LIBS =
103
104#
105# Rules for building the executable...
106#
107all: $(TARGET) ;
108
109$(TARGET): $(GENERATED_SOURCES) $(USER_SOURCES)
110 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
111 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
112
113$(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
114 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
115
116compile: $(TTCN3_MODULES) $(ASN1_MODULES)
117 $(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) $(TTCN3_MODULES) \
118 $(ASN1_MODULES) - $?
119 touch $@
120
121clean:
122 -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
123 $(GENERATED_SOURCES) compile *.log
124
125dep: $(GENERATED_SOURCES)
126 makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES)
127
128archive:
129 mkdir -p $(ARCHIVE_DIR)
130 tar -cvhf - $(TTCN3_MODULES) $(ASN1_MODULES) \
131 $(USER_HEADERS) $(USER_SOURCES) Makefile \
132 | gzip >$(ARCHIVE_DIR)/$(TARGET)-`date '+%y%m%d-%H%M'`.tgz
133
134#
135# Add your rules here if necessary...
136#
This page took 0.028876 seconds and 5 git commands to generate.