1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Initial Developer of the Original Code is
16 # Norbert Thiebaud <nthiebaud@gmail.com> (C) 2011, All Rights Reserved.
18 # Alternatively, the contents of this file may be used under the terms of
19 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
20 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
21 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
22 # instead of those above.
25 $(eval
$(call gb_Module_Module
,tail_end
))
27 $(eval
$(call gb_Module_add_moduledirs
,tail_end
,\
71 $(if
$(filter NLPSOLVER
,$(BUILD_TYPE
)),\
81 $(if
$(filter QADEVOOO
,$(BUILD_TYPE
)),\
93 $(if
$(filter DESKTOP
,$(BUILD_TYPE
)),\
129 $(if
$(filter X11_EXTENSIONS
,$(BUILD_TYPE
)), \
133 $(if
$(filter DESKTOP
,$(BUILD_TYPE
)), \
140 ifeq ($(MERGELIBS
),TRUE
)
141 $(eval
$(call gb_Module_add_targets
,tail_end
,\
146 # Especially when building everything with symbols, the linking of the largest
147 # libraries takes enormous amounts of RAM. To prevent annoying OOM situations
148 # etc., try to prevent linking these in parallel by adding artificial build
149 # order dependencies here.
150 define tailbuild_serialize1
151 $(call gb_LinkTarget_get_target
,$(call gb_Library_get_linktargetname
,$(1))) \
152 :|
$(foreach lib
,$(2),$(call gb_Library_get_target
,$(lib
)))
155 define tailbuild_serialize
156 $(if
$(filter-out 0 1,$(words $(1))),\
157 $(call tailbuild_serialize1
,$(firstword $(1)),$(wordlist
2,$(words $(1)),$(1))))
159 $(call tailbuild_serialize
,$(wordlist
2,$(words $(1)),$(1))))
162 $(eval
$(call tailbuild_serialize
,scfilt sc sw sd
$(if
$(filter DBCONNECTIVITY
,$(BUILD_TYPE
)),dbu
) oox svxcore vcl xo
))
164 # vim: set noet sw=4 ts=4: