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