Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / RAW / Examples / 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 # Forstner, Matyas
12 # Hanko, Matyas
13 # Kovacs, Ferenc
14 # Raduly, Csaba
15 # Szabados, Kristof
16 # Szabo, Janos Zoltan – initial implementation
17 # Szalai, Gabor
18 #
19 ##############################################################################
20 TOPDIR := ../..
21 include $(TOPDIR)/Makefile.regression
22
23 .PHONY: all clean dep run
24
25 TTCN3_LIB = ttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX)
26
27 TTCN3_MODULES = DTAP_typedefs.ttcn SCCP_typedefs.ttcn general_typedefs.ttcn DTAP_RAW_Samples.ttcn RAW_Test.ttcn SCCP_RAW_Samples.ttcn
28
29 GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc)
30 GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
31 ifdef CODE_SPLIT
32 GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
33 endif
34
35 USER_SOURCES =
36
37 # All object files needed for the executable test suite:
38 OBJECTS = $(GENERATED_SOURCES:.cc=.o) $(USER_SOURCES:.cc=.o)
39
40 # The name of the executable test suite:
41 TARGET = RAW_Test$(EXESUFFIX)
42
43 all: $(TARGET) ;
44
45 $(TARGET): $(OBJECTS)
46 $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
47 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
48
49 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
50 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
51
52 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
53 $(TTCN3_COMPILER) $(COMPILER_FLAGS) $^
54 touch $@
55
56 clean distclean:
57 $(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
58 $(GENERATED_SOURCES) compile *.log
59
60 dep: $(GENERATED_SOURCES)
61 makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES)
62
63 run: $(TARGET) RAWtest.cfg
64 ./$^
65
66 # DO NOT DELETE
This page took 0.03731 seconds and 5 git commands to generate.