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