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