e445fc98e9f59ac4cce8f058b437bca3a308fc17
[deliverable/titan.core.git] / regression_test / acceptance_test / comptest / 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 # Gecse, Roland
12 # Raduly, Csaba
13 #
14 ##############################################################################
15 TOPDIR := ../../
16 include ../../Makefile.regression
17
18 # Flags for the C++ preprocessor (and makedepend as well):
19 #CPPFLAGS += -D$(PLATFORM) -I$(TTCN3_DIR)/include
20
21 # Flags for the C++ compiler:
22 #CXXFLAGS += -Wall
23
24 # Flags for the linker:
25 #LDFLAGS +=
26
27 # Flags for the TTCN-3 and ASN.1 compiler:
28 #COMPILER_FLAGS += -L
29
30 # Execution mode: (either ttcn3 or ttcn3-parallel)
31 TTCN3_LIB = ttcn3$(RT2_SUFFIX)-parallel$(DYNAMIC_SUFFIX)
32
33
34 #
35 # You may change these variables. Add your files if necessary...
36 #
37
38 # The TTCN-3 modules needed for this project:
39 TTCN3_MODULES = comptest.ttcn
40
41 # The ASN.1 modules needed for this project:
42 ASN1_MODULES =
43
44 # C++ source & header files generated by TTCN-3 & ASN.1 compilers:
45 GENERATED_SOURCES = comptest.cc
46 GENERATED_HEADERS = comptest.hh
47 ifdef CODE_SPLIT
48 GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
49 endif
50
51 # Source & header files of Test Ports and your other modules:
52 USER_SOURCES =
53 USER_HEADERS =
54
55 # All object files needed for the executable test suite:
56 OBJECTS = comptest.o
57
58 # The name of the executable test suite:
59 TARGET = comptest
60
61 #
62 # Do not modify these unless you know what you are doing...
63 #
64 #SOLARIS_LIBS = -lxnet
65 #LINUX_LIBS =
66 #FREEBSD_LIBS =
67 #WIN32_LIBS =
68
69 #
70 # Rules for building the executable...
71 #
72 all: $(TARGET) ;
73
74 $(TARGET): $(GENERATED_SOURCES) $(USER_SOURCES)
75 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
76 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
77
78 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
79 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
80
81 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
82 $(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) $(TTCN3_MODULES) \
83 $(ASN1_MODULES) - $?
84 touch $@
85
86 clean distclean:
87 -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
88 $(GENERATED_SOURCES) compile *.log
89
90
91 #
92 # Add your rules here if necessary...
93 #
94
This page took 0.035569 seconds and 4 git commands to generate.