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
24 # Szabo, Janos Zoltan – initial implementation
26 # Zalanyi, Balazs Andor
28 ##############################################################################
29 # Main Makefile for the TTCN-3 Test Executor
30 # For use with GNU make only.
33 include $(TOP
)/Makefile.cfg
35 # Dirlist for "all", "clean", "distclean"
36 ALLDIRS
:= common compiler2 repgen xsdconvert
39 ALLDIRS
+= core core2 mctr2 loggerplugins
42 # JNI not supported on Cygwin or Mingw
43 ifneq ($(PLATFORM
), WIN32
)
51 # Dirlist for "dep", "tags"
56 # Dirlist for "install"
57 INSTALLDIRS
:= $(ALLDIRS
)
59 INSTALLDIRS
+= etc help hello
61 ###########################################################
63 all run
clean distclean:
64 @for
dir in
$(ALLDIRS
); do \
65 $(MAKE
) -C
$$dir $@ || exit
; \
69 @for
dir in
$(DEPDIRS
); do \
70 $(MAKE
) -C
$$dir $@ || exit
; \
74 if
test -h
$(TTCN3_DIR
); then \
75 echo
$(TTCN3_DIR
) is a symlink
, you cannot be serious
; exit
1; fi
77 $(info cross your fingers...
)
80 ifeq ($(INCLUDE_EXTERNAL_LIBS
), yes
)
81 mkdir
-p
$(TTCN3_DIR
)/lib
82 cp
-d
$(OPENSSL_DIR
)/lib
/libcrypto.so
* $(TTCN3_DIR
)/lib
83 cp
-d
$(XMLDIR
)/lib
/libxml2.so
* $(TTCN3_DIR
)/lib
85 @for
dir in
$(INSTALLDIRS
); do \
86 $(MAKE
) -C
$$dir $@ || exit
; \
88 ifeq ($(LICENSING
), yes
)
89 mkdir
-p
$(ETCDIR
)/licensegen
90 cp licensegen
/license.dat
$(ETCDIR
)/license
92 chmod
-R
+r
,go-w
$(TTCN3_DIR
)
94 # check is the standard GNU target for running tests
95 # (avoids clash with shell builtin 'test')
97 make
-C regression_test report
99 ifneq (,$(findstring prereq
,$(MAKECMDGOALS
)))
100 # Export all variables into the environment for the prereq target
105 # no need to include Makefile.genrules
107 .PHONY
: all clean distclean dep
tags install psi dox
check confess prereq
110 Makefile.personal
: SHELL
:=/bin
/bash
112 if
[ -f
$(TOP
)/makefiles
/$@.
$${HOSTNAME
:=$${COMPUTERNAME}} ]; then ln
-s
$(TOP
)/makefiles
/$@.
$${HOSTNAME} $@
; else touch
$@
; fi