Makefile reverted
[deliverable/titan.core.git] / Makefile
CommitLineData
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
22# Raduly, Csaba
23# Szabados, Kristof
24# Szabo, Janos Zoltan – initial implementation
25# Torpis, Zsolt
26# Zalanyi, Balazs Andor
d44e3c4f 27#
28##############################################################################
c902f2cc 29# Main Makefile for the TTCN-3 Test Executor
30# For use with GNU make only.
970ed795 31
c902f2cc 32TOP := .
33include $(TOP)/Makefile.cfg
970ed795 34
c902f2cc 35# Dirlist for "all", "clean", "distclean"
36ALLDIRS := common compiler2 repgen xsdconvert
970ed795 37
c902f2cc 38ifndef MINGW
39 ALLDIRS += core core2 mctr2 loggerplugins
40endif
970ed795 41
c902f2cc 42# JNI not supported on Cygwin or Mingw
43ifneq ($(PLATFORM), WIN32)
44 ifeq ($(JNI), yes)
45 ALLDIRS += JNI
46 endif
47endif
970ed795 48
c902f2cc 49#ALLDIRS += ctags
970ed795 50
c902f2cc 51# Dirlist for "dep", "tags"
52DEPDIRS := $(ALLDIRS)
970ed795 53
c902f2cc 54ALLDIRS += usrguide
970ed795 55
c902f2cc 56# Dirlist for "install"
57INSTALLDIRS := $(ALLDIRS)
970ed795 58
c902f2cc 59INSTALLDIRS += etc help hello
60
61###########################################################
62
63all run clean distclean:
64 @for dir in $(ALLDIRS); do \
65 $(MAKE) -C $$dir $@ || exit; \
66 done
67
68dep tags:
69 @for dir in $(DEPDIRS); do \
70 $(MAKE) -C $$dir $@ || exit; \
71 done
72
73install:
74 if test -h $(TTCN3_DIR); then \
75 echo $(TTCN3_DIR) is a symlink, you cannot be serious; exit 1; fi
76ifdef MINGW
77 $(info cross your fingers...)
78endif
79 -rm -rf $(TTCN3_DIR)
80ifeq ($(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
84endif
85 @for dir in $(INSTALLDIRS); do \
86 $(MAKE) -C $$dir $@ || exit; \
87 done
88ifeq ($(LICENSING), yes)
89 mkdir -p $(ETCDIR)/licensegen
90 cp licensegen/license.dat $(ETCDIR)/license
91endif
92 chmod -R +r,go-w $(TTCN3_DIR)
93
94# check is the standard GNU target for running tests
95# (avoids clash with shell builtin 'test')
96check:
97 make -C regression_test report
98
99ifneq (,$(findstring prereq,$(MAKECMDGOALS)))
100# Export all variables into the environment for the prereq target
101export
102endif
103
104
105# no need to include Makefile.genrules
106
107.PHONY: all clean distclean dep tags install psi dox check confess prereq
108
109
110Makefile.personal: SHELL:=/bin/bash
111Makefile.personal:
112 if [ -f $(TOP)/makefiles/$@.$${HOSTNAME:=$${COMPUTERNAME}} ]; then ln -s $(TOP)/makefiles/$@.$${HOSTNAME} $@; else touch $@; fi
This page took 0.027865 seconds and 5 git commands to generate.