Commit | Line | Data |
---|---|---|
d44e3c4f | 1 | ############################################################################## |
2 | # Copyright (c) 2000-2016 Ericsson Telecom AB | |
970ed795 EL |
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 | |
d44e3c4f | 7 | # |
8 | # Contributors: | |
c902f2cc | 9 | # |
10 | # Baji, Laszlo | |
11 | # Balasko, Jeno | |
12 | # Delic, Adam | |
13 | # Forstner, Matyas | |
14 | # Godar, Marton | |
15 | # Horvath, Gabriella | |
16 | # Koppany, Csaba | |
17 | # Kovacs, Ferenc | |
18 | # Kovacs, Zoltan | |
19 | # Kremer, Peter | |
20 | # Lovassy, Arpad | |
21 | # Ormandi, Matyas | |
dee86a3f | 22 | # Pilisi, Gergely |
c902f2cc | 23 | # Raduly, Csaba |
24 | # Szabados, Kristof | |
25 | # Szabo, Janos Zoltan – initial implementation | |
26 | # Torpis, Zsolt | |
27 | # Zalanyi, Balazs Andor | |
d44e3c4f | 28 | # |
29 | ############################################################################## | |
c902f2cc | 30 | # Main Makefile for the TTCN-3 Test Executor |
31 | # For use with GNU make only. | |
970ed795 | 32 | |
c902f2cc | 33 | TOP := . |
34 | include $(TOP)/Makefile.cfg | |
970ed795 | 35 | |
c902f2cc | 36 | # Dirlist for "all", "clean", "distclean" |
37 | ALLDIRS := common compiler2 repgen xsdconvert | |
970ed795 | 38 | |
c902f2cc | 39 | ifndef MINGW |
40 | ALLDIRS += core core2 mctr2 loggerplugins | |
41 | endif | |
970ed795 | 42 | |
c902f2cc | 43 | # JNI not supported on Cygwin or Mingw |
44 | ifneq ($(PLATFORM), WIN32) | |
45 | ifeq ($(JNI), yes) | |
46 | ALLDIRS += JNI | |
47 | endif | |
48 | endif | |
970ed795 | 49 | |
c902f2cc | 50 | #ALLDIRS += ctags |
970ed795 | 51 | |
c902f2cc | 52 | # Dirlist for "dep", "tags" |
53 | DEPDIRS := $(ALLDIRS) | |
970ed795 | 54 | |
c902f2cc | 55 | ALLDIRS += usrguide |
970ed795 | 56 | |
c902f2cc | 57 | # Dirlist for "install" |
58 | INSTALLDIRS := $(ALLDIRS) | |
970ed795 | 59 | |
c902f2cc | 60 | INSTALLDIRS += etc help hello |
61 | ||
62 | ########################################################### | |
63 | ||
64 | all run clean distclean: | |
65 | @for dir in $(ALLDIRS); do \ | |
66 | $(MAKE) -C $$dir $@ || exit; \ | |
67 | done | |
68 | ||
69 | dep tags: | |
70 | @for dir in $(DEPDIRS); do \ | |
71 | $(MAKE) -C $$dir $@ || exit; \ | |
72 | done | |
73 | ||
74 | install: | |
75 | if test -h $(TTCN3_DIR); then \ | |
76 | echo $(TTCN3_DIR) is a symlink, you cannot be serious; exit 1; fi | |
77 | ifdef MINGW | |
78 | $(info cross your fingers...) | |
79 | endif | |
80 | -rm -rf $(TTCN3_DIR) | |
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 | |
85 | endif | |
86 | @for dir in $(INSTALLDIRS); do \ | |
87 | $(MAKE) -C $$dir $@ || exit; \ | |
88 | done | |
89 | ifeq ($(LICENSING), yes) | |
90 | mkdir -p $(ETCDIR)/licensegen | |
91 | cp licensegen/license.dat $(ETCDIR)/license | |
92 | endif | |
93 | chmod -R +r,go-w $(TTCN3_DIR) | |
94 | ||
95 | # check is the standard GNU target for running tests | |
96 | # (avoids clash with shell builtin 'test') | |
97 | check: | |
dee86a3f | 98 | compiler2/compiler -v |
c902f2cc | 99 | |
100 | ifneq (,$(findstring prereq,$(MAKECMDGOALS))) | |
101 | # Export all variables into the environment for the prereq target | |
102 | export | |
103 | endif | |
104 | ||
105 | ||
106 | # no need to include Makefile.genrules | |
107 | ||
108 | .PHONY: all clean distclean dep tags install psi dox check confess prereq | |
109 | ||
110 | ||
111 | Makefile.personal: SHELL:=/bin/bash | |
112 | Makefile.personal: | |
113 | if [ -f $(TOP)/makefiles/$@.$${HOSTNAME:=$${COMPUTERNAME}} ]; then ln -s $(TOP)/makefiles/$@.$${HOSTNAME} $@; else touch $@; fi |