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