1# 2# Main Makefile for GNUstep Base Library. 3# 4# Copyright (C) 1997 Free Software Foundation, Inc. 5# 6# Written by: Scott Christley <scottc@net-community.com> 7# 8# This file is part of the GNUstep Base Library. 9# 10# This library is free software; you can redistribute it and/or 11# modify it under the terms of the GNU General Public 12# License as published by the Free Software Foundation; either 13# version 2 of the License, or (at your option) any later version. 14# 15# This library is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18# General Public License for more details. 19# 20# You should have received a copy of the GNU General Public 21# License along with this library; if not, write to the Free 22# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23# Boston, MA 02111 USA 24# 25 26ifeq ($(GNUSTEP_MAKEFILES),) 27 GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null) 28 ifeq ($(GNUSTEP_MAKEFILES),) 29 $(warning ) 30 $(warning Unable to obtain GNUSTEP_MAKEFILES setting from gnustep-config!) 31 $(warning Perhaps gnustep-make is not properly installed,) 32 $(warning so gnustep-config is not in your PATH.) 33 $(warning ) 34 $(warning Your PATH is currently $(PATH)) 35 $(warning ) 36 endif 37endif 38 39ifeq ($(GNUSTEP_MAKEFILES),) 40 $(error You need to set GNUSTEP_MAKEFILES before compiling!) 41endif 42 43GNUSTEP_CORE_SOFTWARE = YES 44export GNUSTEP_CORE_SOFTWARE 45RPM_DISABLE_RELOCATABLE = YES 46PACKAGE_NEEDS_CONFIGURE = YES 47 48PACKAGE_NAME = gnustep-base 49export PACKAGE_NAME 50 51SVN_MODULE_NAME = base 52SVN_BASE_URL = svn+ssh://svn.gna.org/svn/gnustep/libs 53 54# 55# Include local (new) configuration - this will prevent the old one 56# (if any) from $(GNUSTEP_MAKEFILES)/Additional/base.make to be included 57# 58GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=base.make 59include $(GNUSTEP_MAKEFILES)/common.make 60 61include ./Version 62-include config.mak 63 64# Helper variable to check if the generated makefiles are present. If 65# they are not, the tree is clean so prevent make from recursing into 66# subprojects when clean/distclean is being invoked again. 67_have_makefiles := $(shell test -f config.mak -o -f base.make && echo yes) 68 69# 70# The list of subproject directories 71# 72ifeq ($(_have_makefiles),yes) 73SUBPROJECTS = Source 74SUBPROJECTS += Tools NSTimeZones Resources Tests 75endif 76 77-include Makefile.preamble 78 79include $(GNUSTEP_MAKEFILES)/aggregate.make 80-include $(GNUSTEP_MAKEFILES)/Master/deb.make 81 82-include Makefile.postamble 83