e1f7ad1deaea1df4e77970dd52dac4b22bc07d8c
[deliverable/titan.core.git] / regression_test / assignmentNotation / 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 = TassignmentNotation.ttcn
16 ASN1_MODULES = TassignmentNotation.asn
17
18 GENERATED_SOURCES = $(TTCN3_MODULES:.ttcn=.cc) ASN_Definitions.cc
19 GENERATED_HEADERS = $(TTCN3_MODULES:.ttcn=.hh) ASN_Definitions.hh
20 ifdef CODE_SPLIT
21 GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc))
22 endif
23
24 USER_SOURCES =
25 USER_HEADERS =
26
27 OBJECTS = $(GENERATED_SOURCES:.cc=.o) $(USER_SOURCES:.cc=.o)
28
29 TARGET = TassignmentNotation$(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) \
35 -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS)
36
37 $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile
38
39 compile: $(TTCN3_MODULES) $(ASN1_MODULES)
40 $(TTCN3_COMPILER) $^
41 touch compile
42
43 clean distclean:
44 -rm -f $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \
45 $(GENERATED_SOURCES) compile *.log
46
47 dep: $(GENERATED_SOURCES)
48 makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES)
49
50 run: $(TARGET) TassignmentNotation.cfg
51 ./$^
This page took 0.036122 seconds and 4 git commands to generate.