Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / RAW / Annex_E_variants / 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 TOPDIR := ../..
9 include $(TOPDIR)/Makefile.regression
10
11 .PHONY: all clean dep run
12
13 TTCN3_LIB = ttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX)
14
15 TTCN3_MODULES = Annex_E_variants.ttcn
16
17 GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc)
18 GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
19 ifdef CODE_SPLIT
20 GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
21 endif
22
23 USER_SOURCES =
24
25 # All object files needed for the executable test suite:
26 OBJECTS = $(GENERATED_SOURCES:.cc=.o) $(USER_SOURCES:.cc=.o)
27
28 # The name of the executable test suite:
29 TARGET = Annex_E_variants$(EXESUFFIX)
30
31 all: $(TARGET) ;
32
33 $(TARGET): $(OBJECTS)
34 $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \
35 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
36
37 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
38 @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi
39
40 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
41 $(TTCN3_COMPILER) $(COMPILER_FLAGS) $^
42 touch $@
43
44 clean distclean:
45 $(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
46 $(GENERATED_SOURCES) compile *.log
47
48 dep: $(GENERATED_SOURCES)
49 makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES)
50
51 run: $(TARGET) Annex_E_variants.cfg
52 ./$^
53
54 # DO NOT DELETE
This page took 0.029763 seconds and 5 git commands to generate.