| 1 |
############################################################################## |
| 2 |
# Copyright (c) 2000-2021 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 v2.0 |
| 5 |
# which accompanies this distribution, and is available at |
| 6 |
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html |
| 7 |
# |
| 8 |
# Contributors: |
| 9 |
# Balasko, Jeno |
| 10 |
# Delic, Adam |
| 11 |
# Forstner, Matyas |
| 12 |
# Kovacs, Ferenc |
| 13 |
# Lovassy, Arpad |
| 14 |
# Raduly, Csaba |
| 15 |
# Szabo, Bence Janos |
| 16 |
# Szabo, Janos Zoltan – initial implementation |
| 17 |
# |
| 18 |
############################################################################## |
| 19 |
# Makefile for installing the "Hello World!" example. |
| 20 |
|
| 21 |
TOP := $(shell cd .. && pwd) |
| 22 |
|
| 23 |
include ../Makefile.cfg |
| 24 |
|
| 25 |
DEMOFILES := MyExample.ttcn PCOType.hh PCOType.cc hello_world.ttcn MyExample.cfg MyExample2.cfg |
| 26 |
|
| 27 |
MAKEFILEGENFLAGS := -g |
| 28 |
ifeq ($(COVERAGE), yes) |
| 29 |
MAKEFILEGENFLAGS += -C |
| 30 |
endif |
| 31 |
|
| 32 |
install: |
| 33 |
ifdef MINGW |
| 34 |
@echo Skipped ${CURDIR} for MinGW |
| 35 |
else |
| 36 |
mkdir -p $(DEMODIR) |
| 37 |
cp $(DEMOFILES) $(DEMODIR) |
| 38 |
cd $(DEMODIR) && $(BINDIR)/ttcn3_makefilegen $(MAKEFILEGENFLAGS) $(DEMOFILES) && \ |
| 39 |
$(MAKE) CXX='$(CXX)' CXXFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)' && \ |
| 40 |
(sleep 5 && echo 'Hello, TTCN-3!') | ttcn3_start -ip "127.0.0.1" MyExample MyExample.cfg && \ |
| 41 |
logformat -o MyExample_merged.log *.log |
| 42 |
cd $(DEMODIR) && make clean |
| 43 |
endif |