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