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
15 # Szabo, Janos Zoltan – initial implementation
17 ##############################################################################
18 # Makefile for installing the "Hello World!" example.
20 TOP
:= $(shell cd ..
&& pwd
)
22 include ..
/Makefile.cfg
24 DEMOFILES
:= MyExample.ttcn PCOType.hh PCOType.
cc hello_world.ttcn MyExample.cfg
26 MAKEFILEGENFLAGS
:= -g
27 ifeq ($(COVERAGE
), yes
)
28 MAKEFILEGENFLAGS
+= -C
33 @echo Skipped
${CURDIR} for MinGW
36 cp
$(DEMOFILES
) $(DEMODIR
)
37 cd
$(DEMODIR
) && $(BINDIR
)/ttcn3_makefilegen
$(MAKEFILEGENFLAGS
) \
38 -o Makefile.tmp
$(DEMOFILES
) && \
39 sed
-e
's/# TTCN3_DIR =/TTCN3_DIR =/' <Makefile.tmp
>Makefile
&& \
40 $(RM
) Makefile.tmp
&& $(MAKE
) CXX
='$(CXX)' && \
41 (sleep
5 && echo
'Hello, TTCN-3!') | ttcn3_start MyExample MyExample.cfg