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 ###############################################################################
9 include $(TOPDIR
)/Makefile.regression
11 .SUFFIXES
: .ttcn .asn .hh
12 .PHONY
: all clean dep run
14 TTCN3_LIB
= ttcn3
$(RT2_SUFFIX
)$(DYNAMIC_SUFFIX
)
16 TTCN3_MODULES
= TimplicitEnc.ttcn
18 GENERATED_SOURCES
= $(TTCN3_MODULES
:.ttcn
=.
cc)
19 GENERATED_HEADERS
= $(TTCN3_MODULES
:.ttcn
=.hh
)
21 GENERATED_SOURCES
:= $(foreach file
, $(GENERATED_SOURCES
:.
cc=), $(addprefix $(file
), .
cc _seq.
cc _set.
cc _seqof.
cc _setof.
cc _union.
cc))
24 # Source & header files of Test Ports and your other modules:
25 USER_SOURCES
= PCOType.
cc
26 USER_HEADERS
= PCOType.hh
28 OBJECTS
= $(GENERATED_SOURCES
:.
cc=.o
) $(USER_SOURCES
:.
cc=.o
)
30 TARGET
= TimplicitEnc
$(EXESUFFIX
)
34 $(TARGET
): $(GENERATED_SOURCES
) $(USER_SOURCES
)
35 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$^
-L
$(TTCN3_DIR
)/lib
-l
$(TTCN3_LIB
) -L
$(OPENSSL_DIR
)/lib
-lcrypto
$($(PLATFORM
)_LIBS
)
37 $(GENERATED_SOURCES
) $(GENERATED_HEADERS
): $(TTCN3_MODULES
)
41 -rm -f
$(TARGET
) $(OBJECTS
) $(GENERATED_HEADERS
) \
42 $(GENERATED_SOURCES
) *.log
*~ Makefile.bak core
44 dep
: $(GENERATED_SOURCES
)
45 makedepend
$(CPPFLAGS
) $(USER_SOURCES
) $(GENERATED_SOURCES
)
47 run
: $(TARGET
) config.cfg
50 PCOType.o
: PCOType.hh TimplicitEnc.hh
51 MyExample.o
: PCOType.hh TimplicitEnc.hh
54 $(foreach src
, $(USER_SOURCES
), $(eval vpath
$(src
) $(ABS_SRC
)))