1997-10-30 22:23:50 +00:00
|
|
|
#
|
1997-10-31 16:26:44 +00:00
|
|
|
# Main Makefile for GNUstep Base Library.
|
|
|
|
#
|
1997-10-30 22:23:50 +00:00
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
1997-10-31 16:26:44 +00:00
|
|
|
# Written by: Scott Christley <scottc@net-community.com>
|
1997-10-30 22:23:50 +00:00
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Base Library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
2005-07-15 22:51:23 +00:00
|
|
|
# modify it under the terms of the GNU General Public
|
1997-10-30 22:23:50 +00:00
|
|
|
# License as published by the Free Software Foundation; either
|
2008-06-08 10:38:33 +00:00
|
|
|
# version 2 of the License, or (at your option) any later version.
|
1997-10-30 22:23:50 +00:00
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2005-07-15 22:51:23 +00:00
|
|
|
# General Public License for more details.
|
1997-10-30 22:23:50 +00:00
|
|
|
#
|
2005-07-15 22:51:23 +00:00
|
|
|
# You should have received a copy of the GNU General Public
|
1997-10-30 22:23:50 +00:00
|
|
|
# License along with this library; if not, write to the Free
|
2024-11-07 13:37:59 +00:00
|
|
|
# Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA
|
1997-10-31 16:26:44 +00:00
|
|
|
#
|
1997-10-30 22:23:50 +00:00
|
|
|
|
2007-02-20 00:09:10 +00:00
|
|
|
ifeq ($(GNUSTEP_MAKEFILES),)
|
|
|
|
GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null)
|
2009-05-04 07:23:46 +00:00
|
|
|
ifeq ($(GNUSTEP_MAKEFILES),)
|
2009-05-29 10:17:21 +00:00
|
|
|
$(warning )
|
|
|
|
$(warning Unable to obtain GNUSTEP_MAKEFILES setting from gnustep-config!)
|
|
|
|
$(warning Perhaps gnustep-make is not properly installed,)
|
|
|
|
$(warning so gnustep-config is not in your PATH.)
|
|
|
|
$(warning )
|
|
|
|
$(warning Your PATH is currently $(PATH))
|
|
|
|
$(warning )
|
2009-05-04 07:23:46 +00:00
|
|
|
endif
|
2007-02-20 00:09:10 +00:00
|
|
|
endif
|
2007-02-19 14:26:53 +00:00
|
|
|
|
2001-06-05 14:12:18 +00:00
|
|
|
ifeq ($(GNUSTEP_MAKEFILES),)
|
2007-02-19 14:26:53 +00:00
|
|
|
$(error You need to set GNUSTEP_MAKEFILES before compiling!)
|
2001-06-05 14:12:18 +00:00
|
|
|
endif
|
|
|
|
|
2008-12-22 09:18:32 +00:00
|
|
|
GNUSTEP_CORE_SOFTWARE = YES
|
|
|
|
export GNUSTEP_CORE_SOFTWARE
|
2008-12-18 18:37:45 +00:00
|
|
|
RPM_DISABLE_RELOCATABLE = YES
|
2001-01-17 19:02:54 +00:00
|
|
|
PACKAGE_NEEDS_CONFIGURE = YES
|
|
|
|
|
2008-12-24 18:11:38 +00:00
|
|
|
PACKAGE_NAME = gnustep-base
|
|
|
|
export PACKAGE_NAME
|
|
|
|
|
2006-03-14 04:45:42 +00:00
|
|
|
SVN_MODULE_NAME = base
|
|
|
|
SVN_BASE_URL = svn+ssh://svn.gna.org/svn/gnustep/libs
|
2001-11-22 00:55:02 +00:00
|
|
|
|
2001-01-29 19:40:02 +00:00
|
|
|
#
|
|
|
|
# Include local (new) configuration - this will prevent the old one
|
|
|
|
# (if any) from $(GNUSTEP_MAKEFILES)/Additional/base.make to be included
|
|
|
|
#
|
|
|
|
GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=base.make
|
1998-02-06 17:22:46 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
1997-10-28 14:34:49 +00:00
|
|
|
|
1997-10-31 16:26:44 +00:00
|
|
|
include ./Version
|
2010-04-18 18:18:45 +00:00
|
|
|
-include config.mak
|
1997-10-31 16:26:44 +00:00
|
|
|
|
2015-05-13 07:03:32 +00:00
|
|
|
# Helper variable to check if the generated makefiles are present. If
|
|
|
|
# they are not, the tree is clean so prevent make from recursing into
|
|
|
|
# subprojects when clean/distclean is being invoked again.
|
|
|
|
_have_makefiles := $(shell test -f config.mak -o -f base.make && echo yes)
|
|
|
|
|
1997-10-31 16:26:44 +00:00
|
|
|
#
|
|
|
|
# The list of subproject directories
|
|
|
|
#
|
2015-05-13 07:03:32 +00:00
|
|
|
ifeq ($(_have_makefiles),yes)
|
2006-03-17 16:44:54 +00:00
|
|
|
SUBPROJECTS = Source
|
2011-03-03 08:19:17 +00:00
|
|
|
SUBPROJECTS += Tools NSTimeZones Resources Tests
|
2015-05-13 07:03:32 +00:00
|
|
|
endif
|
1997-10-28 14:34:49 +00:00
|
|
|
|
|
|
|
-include Makefile.preamble
|
|
|
|
|
1998-02-06 17:22:46 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/aggregate.make
|
2014-06-30 06:20:36 +00:00
|
|
|
-include $(GNUSTEP_MAKEFILES)/Master/deb.make
|
1997-10-28 14:34:49 +00:00
|
|
|
|
|
|
|
-include Makefile.postamble
|