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