Makefile reverted
[deliverable/titan.core.git] / Makefile
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
7 #
8 # Contributors:
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
27 #
28 ##############################################################################
29 # Main Makefile for the TTCN-3 Test Executor
30 # For use with GNU make only.
31
32 TOP := .
33 include $(TOP)/Makefile.cfg
34
35 # Dirlist for "all", "clean", "distclean"
36 ALLDIRS := common compiler2 repgen xsdconvert
37
38 ifndef MINGW
39 ALLDIRS += core core2 mctr2 loggerplugins
40 endif
41
42 # JNI not supported on Cygwin or Mingw
43 ifneq ($(PLATFORM), WIN32)
44 ifeq ($(JNI), yes)
45 ALLDIRS += JNI
46 endif
47 endif
48
49 #ALLDIRS += ctags
50
51 # Dirlist for "dep", "tags"
52 DEPDIRS := $(ALLDIRS)
53
54 ALLDIRS += usrguide
55
56 # Dirlist for "install"
57 INSTALLDIRS := $(ALLDIRS)
58
59 INSTALLDIRS += etc help hello
60
61 ###########################################################
62
63 all run clean distclean:
64 @for dir in $(ALLDIRS); do \
65 $(MAKE) -C $$dir $@ || exit; \
66 done
67
68 dep tags:
69 @for dir in $(DEPDIRS); do \
70 $(MAKE) -C $$dir $@ || exit; \
71 done
72
73 install:
74 if test -h $(TTCN3_DIR); then \
75 echo $(TTCN3_DIR) is a symlink, you cannot be serious; exit 1; fi
76 ifdef MINGW
77 $(info cross your fingers...)
78 endif
79 -rm -rf $(TTCN3_DIR)
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
84 endif
85 @for dir in $(INSTALLDIRS); do \
86 $(MAKE) -C $$dir $@ || exit; \
87 done
88 ifeq ($(LICENSING), yes)
89 mkdir -p $(ETCDIR)/licensegen
90 cp licensegen/license.dat $(ETCDIR)/license
91 endif
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')
96 check:
97 make -C regression_test report
98
99 ifneq (,$(findstring prereq,$(MAKECMDGOALS)))
100 # Export all variables into the environment for the prereq target
101 export
102 endif
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
110 Makefile.personal: SHELL:=/bin/bash
111 Makefile.personal:
112 if [ -f $(TOP)/makefiles/$@.$${HOSTNAME:=$${COMPUTERNAME}} ]; then ln -s $(TOP)/makefiles/$@.$${HOSTNAME} $@; else touch $@; fi
This page took 0.032662 seconds and 6 git commands to generate.