1#   -*-makefile-*-
2#   aggregate.make
3#
4#   Makefile rules to build a set of GNUstep-base subprojects.
5#
6#   Copyright (C) 2002 - 2010 Free Software Foundation, Inc.
7#
8#   Author:  Nicola Pero <nicola.pero@meta-innovation.com>
9#
10#   This file is part of the GNUstep Makefile Package.
11#
12#   This library is free software; you can redistribute it and/or
13#   modify it under the terms of the GNU General Public License
14#   as published by the Free Software Foundation; either version 3
15#   of the License, or (at your option) any later version.
16#
17#   You should have received a copy of the GNU General Public
18#   License along with this library; see the file COPYING.
19#   If not, write to the Free Software Foundation,
20#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22# This header used to be the only way to build subdirectories before
23# gnustep-make 2.4.0 (February 2010).  You can still use it (for now)
24# to maintain backwards compatibility with older versions of
25# gnustep-make.  It will be deprecated in February 2012, and removed
26# in February 2015.
27
28# To use it, set the SUBPROJECTS variable to the list of your
29# subdirectories, and include it.  To request parallel building (if
30# available), set "GNUSTEP_USE_PARALLEL_AGGREGATE = yes", else serial
31# building will be assumed.
32
33# prevent multiple inclusions
34ifeq ($(AGGREGATE_MAKE_LOADED),)
35AGGREGATE_MAKE_LOADED=yes
36
37ifeq ($(GNUSTEP_INSTANCE),)
38  ifeq ($(GNUSTEP_USE_PARALLEL_AGGREGATE), yes)
39
40    PARALLEL_SUBDIRECTORIES = $(SUBPROJECTS)
41
42    include $(GNUSTEP_MAKEFILES)/Master/parallel-subdirectories.make
43
44  else
45
46    SERIAL_SUBDIRECTORIES = $(SUBPROJECTS)
47
48    include $(GNUSTEP_MAKEFILES)/Master/serial-subdirectories.make
49
50  endif
51endif
52
53endif
54# aggregate.make loaded
55