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
25 # Szabo, Janos Zoltan – initial implementation
27 # Zalanyi, Balazs Andor
29 ##############################################################################
30 # Main Makefile for the TTCN-3 Test Executor
31 # For use with GNU make only.
34 include $(TOP
)/Makefile.cfg
36 # Dirlist for "all", "clean", "distclean"
37 ALLDIRS
:= common compiler2 repgen xsdconvert
40 ALLDIRS
+= core core2 mctr2 loggerplugins
43 # JNI not supported on Cygwin or Mingw
44 ifneq ($(PLATFORM
), WIN32
)
52 # Dirlist for "dep", "tags"
57 # Dirlist for "install"
58 INSTALLDIRS
:= $(ALLDIRS
)
60 INSTALLDIRS
+= etc help hello
62 ###########################################################
64 all run
clean distclean:
65 @for
dir in
$(ALLDIRS
); do \
66 $(MAKE
) -C
$$dir $@ || exit
; \
70 @for
dir in
$(DEPDIRS
); do \
71 $(MAKE
) -C
$$dir $@ || exit
; \
75 if
test -h
$(TTCN3_DIR
); then \
76 echo
$(TTCN3_DIR
) is a symlink
, you cannot be serious
; exit
1; fi
78 $(info cross your fingers...
)
81 ifeq ($(INCLUDE_EXTERNAL_LIBS
), yes
)
82 mkdir
-p
$(TTCN3_DIR
)/lib
83 cp
-d
$(OPENSSL_DIR
)/lib
/libcrypto.so
* $(TTCN3_DIR
)/lib
84 cp
-d
$(XMLDIR
)/lib
/libxml2.so
* $(TTCN3_DIR
)/lib
86 @for
dir in
$(INSTALLDIRS
); do \
87 $(MAKE
) -C
$$dir $@ || exit
; \
89 ifeq ($(LICENSING
), yes
)
90 mkdir
-p
$(ETCDIR
)/licensegen
91 cp licensegen
/license.dat
$(ETCDIR
)/license
93 chmod
-R
+r
,go-w
$(TTCN3_DIR
)
95 # check is the standard GNU target for running tests
96 # (avoids clash with shell builtin 'test')
100 ifneq (,$(findstring prereq
,$(MAKECMDGOALS
)))
101 # Export all variables into the environment for the prereq target
106 # no need to include Makefile.genrules
108 .PHONY
: all clean distclean dep
tags install psi dox
check confess prereq
111 Makefile.personal
: SHELL
:=/bin
/bash
113 if
[ -f
$(TOP
)/makefiles
/$@.
$${HOSTNAME
:=$${COMPUTERNAME}} ]; then ln
-s
$(TOP
)/makefiles
/$@.
$${HOSTNAME} $@
; else touch
$@
; fi