Use LTTngUSTLogger logger plugin in logtest regression test
[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 # Pilisi, Gergely
23 # Raduly, Csaba
24 # Szabados, Kristof
25 # Szabo, Janos Zoltan – initial implementation
26 # Torpis, Zsolt
27 # Zalanyi, Balazs Andor
28 #
29 ##############################################################################
30 # Main Makefile for the TTCN-3 Test Executor
31 # For use with GNU make only.
32
33 TOP := .
34 include $(TOP)/Makefile.cfg
35
36 # Dirlist for "all", "clean", "distclean"
37 ALLDIRS := common compiler2 repgen xsdconvert
38
39 ifndef MINGW
40 ALLDIRS += mctr2 core core2 loggerplugins
41 endif
42
43 # JNI not supported on Cygwin or Mingw
44 ifneq ($(PLATFORM), WIN32)
45 ifeq ($(JNI), yes)
46 ALLDIRS += JNI
47 endif
48 endif
49
50 #ALLDIRS += ctags
51
52 # Dirlist for "dep", "tags"
53 DEPDIRS := $(ALLDIRS)
54
55 ALLDIRS += usrguide
56
57 # Dirlist for "install"
58 INSTALLDIRS := $(ALLDIRS)
59
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:
98 compiler2/compiler -v
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
This page took 0.032587 seconds and 5 git commands to generate.