Sync with 5.1.0
[deliverable/titan.core.git] / function_test / RAW_EncDec / Makefile
CommitLineData
970ed795
EL
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.5.pl1
10# for Matyas Hanko (ethmhk@duna61) on Tue Nov 4 13:50:16 2003
11
12# The following make commands are available:
13# - make, make all Builds the executable test suite.
14# - make compile Translates TTCN-3 and ASN.1 modules to C++.
15# - make clean Removes all generated files.
16# - make dep Creates/updates dependency list.
17# - make archive Archives all source files.
18
19#
20# Set these variables...
21#
22
23# The path of your TTCN-3 Test Executor installation:
24# Uncomment this line to override the environment variable.
25# TTCN3_DIR =
26
27# Your platform: (SOLARIS, LINUX, FREEBSD or WIN32)
28ifndef PLATFORM
29PLATFORM = SOLARIS
30endif
31
32# Your C++ compiler:
33CXX = g++
34
35XMLDIR = /mnt/TTCN/Tools/libxml2-2.7.1
36# Flags for the C++ preprocessor (and makedepend as well):
37CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include -I$(XMLDIR)/include/libxml2
38ifdef RT2
39CPPFLAGS += -DTITAN_RUNTIME_2
40endif
41
42# Flags for the C++ compiler:
43CXXFLAGS = -Wall
44
45# Flags for the linker:
46LDFLAGS =
47
48# Flags for the TTCN-3 and ASN.1 compiler:
49COMPILER_FLAGS = -L
50ifdef RT2
51COMPILER_FLAGS += -R
52endif
53
54# Execution mode: (either ttcn3 or ttcn3-parallel)
55ifndef RT2
56TTCN3_LIB = ttcn3
57else
58TTCN3_LIB = ttcn3-rt2
59endif
60
61# The path of your OpenSSL installation:
62# If you do not have your own one, leave it unchanged.
63OPENSSL_DIR = $(TTCN3_DIR)
64
65# Directory to store the archived source files:
66# Note: you can set any directory except ./archive
67ARCHIVE_DIR = ./backup
68
69#
70# You may change these variables. Add your files if necessary...
71#
72
73# The TTCN-3 modules needed for this project:
74TTCN3_MODULES = Temp.ttcn
75
76# The ASN.1 modules needed for this project:
77ASN1_MODULES =
78
79# C++ source & header files generated by TTCN-3 & ASN.1 compilers:
80GENERATED_SOURCES = Temp.cc
81GENERATED_HEADERS = Temp.hh
82
83# Source & header files of Test Ports and your other modules:
84USER_SOURCES =
85USER_HEADERS =
86
87# All object files needed for the executable test suite:
88OBJECTS = Temp.o
89
90# The name of the executable test suite:
91TARGET = Temp
92
93ifdef COVERAGE
94CXXFLAGS += -fprofile-arcs -ftest-coverage -g
95LDFLAGS += -fprofile-arcs -ftest-coverage -g -lgcov
96endif
97
98#
99# Do not modify these unless you know what you are doing...
100#
101SOLARIS_LIBS = -lxnet -L$(XMLDIR)/lib -lxml2
102SOLARIS8_LIBS = -lxnet -L$(XMLDIR)/lib -lxml2 -lnsl -lsocket -lresolv
103LINUX_LIBS = -L$(XMLDIR)/lib -lxml2 -lpthread -lrt
104FREEBSD_LIBS = -L$(XMLDIR)/lib -lxml2
105WIN32_LIBS = -L$(XMLDIR)/lib -lxml2
106
107#
108# Rules for building the executable...
109#
110all: $(TARGET) ;
111
112$(TARGET): $(OBJECTS)
113 $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
114 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
115
116.cc.o .c.o:
117 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
118
119$(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
120 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
121
122compile: $(TTCN3_MODULES) $(ASN1_MODULES)
123 $(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) $(TTCN3_MODULES) \
124 $(ASN1_MODULES) - $?
125 touch $@
126
127clean:
128 -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
129 $(GENERATED_SOURCES) compile *.log *.gcda *.gcno
130
131dep: $(GENERATED_SOURCES)
132 makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES)
133
134archive:
135 mkdir -p $(ARCHIVE_DIR)
136 tar -cvhf - $(TTCN3_MODULES) $(ASN1_MODULES) \
137 $(USER_HEADERS) $(USER_SOURCES) Makefile \
138 | gzip >$(ARCHIVE_DIR)/$(TARGET)-`date '+%y%m%d-%H%M'`.tgz
139
140#
141# Add your rules here if necessary...
142#
This page took 0.028758 seconds and 5 git commands to generate.