Titan Core Initial Contribution
[deliverable/titan.core.git] / regression_test / ASN1 / Test352 / Makefile
1 ###############################################################################
2 # Copyright (c) 2000-2014 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 .SUFFIXES: .ttcn .asn .hh
12 .PHONY: all clean dep run
13
14 TTCN3_LIB = ttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX)
15
16 TTCN3_MODULES = Test352T.ttcn
17
18 ASN1_MODULES = Test352A.asn
19
20 GENERATED_SOURCES = $(ASN1_MODULES:.asn=.cc) $(TTCN3_MODULES:.ttcn=.cc)
21
22 GENERATED_HEADERS = $(GENERATED_SOURCES:.cc=.hh)
23 ifdef CODE_SPLIT
24 GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
25 endif
26
27 OBJECTS = $(GENERATED_SOURCES:.cc=.o)
28
29 TARGET = Test352T$(EXESUFFIX)
30
31 all: $(TARGET)
32
33 $(TARGET): $(GENERATED_SOURCES) $(USER_SOURCES)
34 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
35
36 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
37
38 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
39 $(TTCN3_COMPILER) $(COMPILER_FLAGS) $^
40
41 clean distclean:
42 $(RM) $(TARGET) $(GENERATED_HEADERS) $(GENERATED_SOURCES) $(OBJECTS) *.log Makefile.bak
43
44 dep: $(GENERATED_SOURCES)
45 makedepend $(CPPFLAGS) $(GENERATED_SOURCES)
46
47 run: $(TARGET) config.cfg
48 ./$^
This page took 0.032121 seconds and 6 git commands to generate.