Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / PIPEasp_CNL113334 / test / Makefile
CommitLineData
970ed795 1###############################################################################
3abe9331 2# Copyright (c) 2000-2015 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
7###############################################################################
8# This Makefile was generated by the Makefile Generator
9# of the TTCN-3 Test Executor version 1.7.pre0 build 2
10# for Attila Balasko (ethbaat@ehubuux110) on Thu Jan 18 09:37:03 2007
11
12
13# The following make commands are available:
14# - make, make all Builds the executable test suite.
15# - make archive Archives all source files.
16# - make check Checks the semantics of TTCN-3 and ASN.1 modules.
17# - make clean Removes all generated files.
18# - make compile Translates TTCN-3 and ASN.1 modules to C++.
19# - make dep Creates/updates dependency list.
20# - make objects Builds the object files without linking the executable.
21
22#
23# Set these variables...
24#
25
26# The path of your TTCN-3 Test Executor installation:
27# Uncomment this line to override the environment variable.
28# TTCN3_DIR =
29
30# Your platform: (SOLARIS, SOLARIS8, LINUX, FREEBSD or WIN32)
31PLATFORM = SOLARIS8
32
33# Your C++ compiler:
34CXX = g++
35
36# Flags for the C++ preprocessor (and makedepend as well):
37CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include
38
39# Flags for the C++ compiler:
40CXXFLAGS = -Wall
41
42# Flags for the linker:
43LDFLAGS =
44
45# Flags for the TTCN-3 and ASN.1 compiler:
46COMPILER_FLAGS =
47
48# Execution mode: (either ttcn3 or ttcn3-parallel)
49TTCN3_LIB = ttcn3-parallel
50
51# The path of your OpenSSL installation:
52# If you do not have your own one, leave it unchanged.
53OPENSSL_DIR = $(TTCN3_DIR)
54
55# Directory to store the archived source files:
56# Note: you can set any directory except ./archive
57ARCHIVE_DIR = backup
58
59#
60# You may change these variables. Add your files if necessary...
61#
62
63# TTCN-3 modules of this project:
64TTCN3_MODULES = PIPEasp_PortType.ttcn PIPEasp_Types.ttcn
65
66# ASN.1 modules of this project:
67ASN1_MODULES =
68
69# C++ source & header files generated from the TTCN-3 & ASN.1 modules of
70# this project:
71GENERATED_SOURCES = PIPEasp_PortType.cc PIPEasp_Types.cc
72GENERATED_HEADERS = PIPEasp_PortType.hh PIPEasp_Types.hh
73ifdef CODE_SPLIT
74GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
75endif
76
77# C/C++ Source & header files of Test Ports, external functions and
78# other modules:
79USER_SOURCES = PIPEasp_PT.cc
80USER_HEADERS = PIPEasp_PT.hh
81
82# Object files of this project that are needed for the executable test suite:
83OBJECTS = PIPEasp_PortType.o PIPEasp_Types.o PIPEasp_PT.o
84
85# Other files of the project (Makefile, configuration files, etc.)
86# that will be added to the archived source files:
87OTHER_FILES = Makefile
88
89# The name of the executable test suite:
90TARGET = PIPEasp_PortType
91
92#
93# Do not modify these unless you know what you are doing...
94# Platform specific additional libraries:
95#
96SOLARIS_LIBS = -lsocket -lnsl
97SOLARIS8_LIBS = -lsocket -lnsl
98LINUX_LIBS =
99FREEBSD_LIBS =
100WIN32_LIBS =
101
102#
103# Rules for building the executable...
104#
105
106all: $(TARGET) ;
107
108objects: $(OBJECTS) ;
109
110$(TARGET): $(OBJECTS)
111 $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) \
112 -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
113 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
114
115.cc.o .c.o:
116 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
117
118$(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
119 @if [ ! -f $@ ]; then rm -f compile; $(MAKE) compile; fi
120
121check: $(TTCN3_MODULES) $(ASN1_MODULES)
122 $(TTCN3_DIR)/bin/compiler -s $(COMPILER_FLAGS) \
123 $(TTCN3_MODULES) $(PREPROCESSED_TTCN3_MODULES) $(ASN1_MODULES)
124
125compile: $(TTCN3_MODULES) $(ASN1_MODULES)
126 $(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) \
127 $(TTCN3_MODULES) $(ASN1_MODULES) - $?
128 touch $@
129
130clean:
131 -rm -f $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
132 $(GENERATED_SOURCES) compile \
133 tags *.log
134
135dep: $(GENERATED_SOURCES) $(USER_SOURCES)
136 makedepend $(CPPFLAGS) $(GENERATED_SOURCES) $(USER_SOURCES)
137
138archive:
139 mkdir -p $(ARCHIVE_DIR)
140 tar -cvhf - $(TTCN3_MODULES) $(ASN1_MODULES) \
141 $(USER_HEADERS) $(USER_SOURCES) $(OTHER_FILES) \
142 | gzip >$(ARCHIVE_DIR)/`basename $(TARGET) .exe`-`date '+%y%m%d-%H%M'`.tgz
143
144#
145# Add your rules here if necessary...
146#
147
This page took 0.046598 seconds and 5 git commands to generate.