2006-09-18 20:29:28 +00:00
|
|
|
#
|
|
|
|
# config-noarch.make.in
|
|
|
|
#
|
|
|
|
# The settings required by the makefile package that are determined
|
|
|
|
# by configure but that are independent of the platform that we
|
|
|
|
# are working on (keep in mind we can support multiple platforms
|
|
|
|
# being used at the same time!).
|
|
|
|
#
|
|
|
|
# In practice, this file should containg global gnustep-make options
|
2006-10-02 15:54:56 +00:00
|
|
|
# (like GNUSTEP_IS_FLATTENED or GNUSTEP_SYSTEM_ROOT), as opposed to
|
2006-09-18 20:29:28 +00:00
|
|
|
# config info needed to build or compile or do things on a certain
|
|
|
|
# platform (like CC or OPTFLAG), which should go into config.make
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997-2006 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
|
|
|
# Author: Nicola Pero <n.pero@mi.flashnet.it>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
2007-10-30 14:18:41 +00:00
|
|
|
# as published by the Free Software Foundation; either version 3
|
2006-09-18 20:29:28 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
2016-07-08 13:09:17 +00:00
|
|
|
#
|
2006-09-18 20:29:28 +00:00
|
|
|
# You should have received a copy of the GNU General Public
|
2007-07-13 10:11:48 +00:00
|
|
|
# License along with this library; see the file COPYING.
|
2006-09-18 20:29:28 +00:00
|
|
|
# If not, write to the Free Software Foundation,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
#
|
|
|
|
# The GNUstep Make Package Version
|
|
|
|
#
|
|
|
|
GNUSTEP_MAKE_MAJOR_VERSION=@GNUSTEP_MAKE_MAJOR_VERSION@
|
|
|
|
GNUSTEP_MAKE_MINOR_VERSION=@GNUSTEP_MAKE_MINOR_VERSION@
|
|
|
|
GNUSTEP_MAKE_SUBMINOR_VERSION=@GNUSTEP_MAKE_SUBMINOR_VERSION@
|
|
|
|
GNUSTEP_MAKE_VERSION=@GNUSTEP_MAKE_VERSION@
|
|
|
|
|
2008-01-14 15:22:14 +00:00
|
|
|
# Enable or disable strict gnustep-make v2 mode. In strict
|
|
|
|
# gnustep-make v2 mode, we actively try to be backwards-incompatible
|
|
|
|
# with gnustep-make v1. This dangerous option is useful in
|
|
|
|
# test/development builds when you want to make sure your software has
|
|
|
|
# been properly updated to gnustep-make v2.
|
|
|
|
#
|
|
|
|
# If this option is set to 'yes', we enable strict gnustep-make v2
|
|
|
|
# mode. Else, it's ignored.
|
|
|
|
#
|
|
|
|
GNUSTEP_MAKE_STRICT_V2_MODE=@GNUSTEP_MAKE_STRICT_V2_MODE@
|
|
|
|
|
2006-09-18 20:29:28 +00:00
|
|
|
# The default library combination
|
|
|
|
default_library_combo = @ac_cv_library_combo@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Location of GNUstep's config file for this installation
|
|
|
|
#
|
|
|
|
# Warning - the base library's configure.in will extract the GNUstep
|
|
|
|
# config file location from the following line using grep/sed - so if
|
|
|
|
# you change the following lines you *need* to update the base library
|
|
|
|
# configure.in too.
|
|
|
|
#
|
|
|
|
# PS: At run-time, this can be overridden on the command-line, or
|
|
|
|
# via an environment variable.
|
|
|
|
ifeq ($(GNUSTEP_CONFIG_FILE),)
|
|
|
|
GNUSTEP_CONFIG_FILE = @GNUSTEP_CONFIG_FILE@
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Now we set up the environment and everything by reading the GNUstep
|
|
|
|
# configuration file(s).
|
|
|
|
#
|
|
|
|
|
|
|
|
# These are the defaults value ... they will be used only if they are
|
|
|
|
# not set in the config files (or on the command-line or in
|
|
|
|
# environment).
|
2008-01-14 15:22:14 +00:00
|
|
|
ifeq ($(GNUSTEP_MAKE_STRICT_V2_MODE),yes)
|
2016-06-25 07:12:41 +00:00
|
|
|
GNUSTEP_SYSTEM_ROOT = $(error GNUSTEP_SYSTEM_ROOT is obsolete)
|
|
|
|
GNUSTEP_LOCAL_ROOT = $(error GNUSTEP_LOCAL_ROOT is obsolete)
|
|
|
|
GNUSTEP_NETWORK_ROOT = $(error GNUSTEP_NETWORK_ROOT is obsolete)
|
|
|
|
GNUSTEP_USER_DIR = $(error GNUSTEP_USER_DIR is obsolete)
|
2008-01-14 15:22:14 +00:00
|
|
|
else
|
|
|
|
GNUSTEP_SYSTEM_ROOT = @GNUSTEP_SYSTEM_ROOT@
|
|
|
|
GNUSTEP_LOCAL_ROOT = @GNUSTEP_LOCAL_ROOT@
|
|
|
|
GNUSTEP_NETWORK_ROOT = @GNUSTEP_NETWORK_ROOT@
|
|
|
|
GNUSTEP_USER_DIR = @GNUSTEP_USER_DIR@
|
|
|
|
endif
|
2006-09-18 20:29:28 +00:00
|
|
|
|
2021-02-08 20:39:14 +00:00
|
|
|
# When building using Windows-native "make", GNUSTEP_MAKEFILES can be a
|
|
|
|
# Windows-style path (with drive prefix and forward slashes), but
|
|
|
|
# including GNUSTEP_CONFIG_FILE below will turn it into a Unix-style
|
|
|
|
# path, breaking further uses of $GNUSTEP_MAKEFILES. As a hacky
|
|
|
|
# workaround we save the original path if it seems to be Windows-style
|
|
|
|
# (i.e. with drive letter prefix), and restore it below if needed.
|
|
|
|
ifeq ($(GNUSTEP_HOST_OS), windows)
|
|
|
|
ifeq ($(findstring :/, $(GNUSTEP_MAKEFILES)), :/)
|
|
|
|
ORIGINAL_GNUSTEP_MAKEFILES:=$(GNUSTEP_MAKEFILES)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-09-18 20:29:28 +00:00
|
|
|
# This includes the GNUstep configuration file, but only if it exists
|
|
|
|
-include $(GNUSTEP_CONFIG_FILE)
|
|
|
|
|
2021-02-08 20:39:14 +00:00
|
|
|
# Restore original GNUSTEP_MAKEFILES path to Windows-style path if new
|
|
|
|
# path is Unix-style.
|
|
|
|
ifneq ($(ORIGINAL_GNUSTEP_MAKEFILES),)
|
|
|
|
ifneq ($(findstring :/, $(GNUSTEP_MAKEFILES)), :/)
|
|
|
|
GNUSTEP_MAKEFILES:=$(ORIGINAL_GNUSTEP_MAKEFILES)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-09-18 20:29:28 +00:00
|
|
|
# FIXME: determining GNUSTEP_HOME
|
|
|
|
GNUSTEP_HOME = $(HOME)
|
|
|
|
|
|
|
|
# Read the user configuration file ... unless it is disabled (ie, set
|
|
|
|
# to an empty string)
|
|
|
|
ifneq ($(GNUSTEP_USER_CONFIG_FILE),)
|
|
|
|
|
|
|
|
# FIXME - Checking for relative vs. absolute paths!
|
|
|
|
ifneq ($(filter /%, $(GNUSTEP_USER_CONFIG_FILE)),)
|
|
|
|
# Path starts with '/', consider it absolute
|
|
|
|
-include $(GNUSTEP_USER_CONFIG_FILE)
|
|
|
|
else
|
|
|
|
# Path does no start with '/', try it as relative
|
|
|
|
-include $(GNUSTEP_HOME)/$(GNUSTEP_USER_CONFIG_FILE)
|
2016-07-08 13:09:17 +00:00
|
|
|
endif
|
2006-09-18 20:29:28 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2006-10-02 15:54:56 +00:00
|
|
|
# GNUSTEP_FLATTENED is obsolete, please use GNUSTEP_IS_FLATTENED
|
|
|
|
# instead
|
2008-01-14 15:22:14 +00:00
|
|
|
ifeq ($(GNUSTEP_MAKE_STRICT_V2_MODE),yes)
|
2016-06-25 07:12:41 +00:00
|
|
|
GNUSTEP_FLATTENED = $(error GNUSTEP_FLATTENED is obsolete)
|
2008-01-14 15:22:14 +00:00
|
|
|
else
|
|
|
|
GNUSTEP_FLATTENED = @GNUSTEP_FLATTENED@
|
|
|
|
endif
|
2006-10-02 15:54:56 +00:00
|
|
|
GNUSTEP_IS_FLATTENED = @GNUSTEP_IS_FLATTENED@
|
2006-09-18 20:29:28 +00:00
|
|
|
|
2016-07-08 13:09:17 +00:00
|
|
|
GNUSTEP_HAS_PKGCONFIG = @GNUSTEP_HAS_PKGCONFIG@
|
|
|
|
|
2016-06-28 10:56:22 +00:00
|
|
|
ifeq ($(GNUSTEP_MAKE_STRICT_V2_MODE),yes)
|
|
|
|
GNUSTEP_USER_ROOT = $(error GNUSTEP_USER_ROOT is obsolete)
|
|
|
|
else
|
|
|
|
#
|
|
|
|
# Set GNUSTEP_USER_ROOT from GNUSTEP_USER_DIR; GNUSTEP_USER_ROOT is
|
|
|
|
# the variable used in practice
|
|
|
|
#
|
2008-01-14 15:22:14 +00:00
|
|
|
ifneq ($(filter /%, $(GNUSTEP_USER_DIR)),)
|
|
|
|
# Path starts with '/', consider it absolute
|
|
|
|
GNUSTEP_USER_ROOT = $(GNUSTEP_USER_DIR)
|
|
|
|
else
|
|
|
|
# Path does no start with '/', try it as relative
|
|
|
|
GNUSTEP_USER_ROOT = $(GNUSTEP_HOME)/$(GNUSTEP_USER_DIR)
|
2016-07-08 13:09:17 +00:00
|
|
|
endif
|
2008-01-14 15:22:14 +00:00
|
|
|
endif
|
2006-09-18 20:29:28 +00:00
|
|
|
|
2011-03-22 18:36:31 +00:00
|
|
|
# FIXME: Shouldn't the following go into config.make ? They are
|
|
|
|
# arch-specific.
|
|
|
|
|
2006-09-18 20:29:28 +00:00
|
|
|
# If multi-platform support is disabled, just use the hardcoded cpu,
|
|
|
|
# vendor and os determined when gnustep-make was configured. The
|
|
|
|
# reason using the hardcoded ones might be better is that config.guess
|
|
|
|
# and similar scripts might even require compiling test files to
|
|
|
|
# determine the platform - which is horribly slow (that is done in
|
|
|
|
# names.make if GNUSTEP_HOST is not yet set at that stage). To
|
|
|
|
# prevent this problem, unless we were configured to determine the
|
|
|
|
# platform at run time, by default we use the hardcoded values of
|
|
|
|
# GNUSTEP_HOST*.
|
|
|
|
|
|
|
|
ifeq ("@GNUSTEP_MULTI_PLATFORM@","")
|
|
|
|
GNUSTEP_HOST = @target@
|
|
|
|
GNUSTEP_HOST_CPU = @clean_target_cpu@
|
|
|
|
GNUSTEP_HOST_VENDOR = @clean_target_vendor@
|
|
|
|
GNUSTEP_HOST_OS = @clean_target_os@
|
|
|
|
endif
|
2009-02-09 11:23:24 +00:00
|
|
|
|
|
|
|
# Enables of disables parallel building support. When parallel
|
|
|
|
# building support is disabled, the target .NOTPARALLEL: is used in
|
|
|
|
# all make invocations of gnustep-make to make sure a traditional non
|
|
|
|
# parallel build is always performed. When parallel building support
|
|
|
|
# is enabled, all make invocations are still .NOTPARALLEL except for
|
|
|
|
# an additional make invocation which is performed when compiling an
|
|
|
|
# executable or library; that invocation does not use .NOTPARALLEL and
|
|
|
|
# will compile all the files of the executable or library in parallel.
|
2016-06-25 07:12:41 +00:00
|
|
|
GNUSTEP_MAKE_PARALLEL_BUILDING = @GNUSTEP_MAKE_PARALLEL_BUILDING@
|