1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# config.make.in
|
|
|
|
#
|
|
|
|
# All of the settings required by the makefile package
|
|
|
|
# that are determined by configure.
|
|
|
|
#
|
2005-10-23 16:44:28 +00:00
|
|
|
# Copyright (C) 1997-2005 Free Software Foundation, Inc.
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
1997-10-06 03:58:06 +00:00
|
|
|
# Author: Ovidiu Predescu <ovidiu@net-community.com>
|
2005-10-23 16:44:28 +00:00
|
|
|
# Author: Nicola Pero <n.pero@mi.flashnet.it>
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public
|
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# If not, write to the Free Software Foundation,
|
2005-05-22 03:20:14 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1997-09-16 01:07:48 +00:00
|
|
|
|
2001-04-25 11:02:13 +00:00
|
|
|
#
|
|
|
|
# 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@
|
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# Binary and compile tools
|
|
|
|
#
|
2003-04-23 07:31:19 +00:00
|
|
|
CC = @CC@
|
|
|
|
OPTFLAG = @CFLAGS@
|
2003-10-21 02:25:44 +00:00
|
|
|
OBJCFLAGS= @OBJCFLAGS@
|
2002-08-16 03:02:06 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
2003-04-23 07:31:19 +00:00
|
|
|
CPP = @CPP@
|
1997-09-16 01:07:48 +00:00
|
|
|
|
1998-12-07 16:54:26 +00:00
|
|
|
EXEEXT = @EXEEXT@
|
2001-03-15 16:20:41 +00:00
|
|
|
OEXT = .@OBJEXT@
|
1997-09-16 01:07:48 +00:00
|
|
|
LIBEXT = .a
|
|
|
|
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
2002-03-05 15:03:12 +00:00
|
|
|
# This is the best we can do given the current autoconf, which only
|
|
|
|
# returns LN_S
|
|
|
|
ifeq ($(LN_S), ln -s)
|
|
|
|
HAS_LN_S = yes
|
2005-07-20 16:00:07 +00:00
|
|
|
else
|
|
|
|
HAS_LN_S = no
|
2002-03-05 15:03:12 +00:00
|
|
|
endif
|
|
|
|
|
2004-11-04 08:45:18 +00:00
|
|
|
# Special case - on mingw32, autoconf sets LN_S to 'ln -s', but then
|
|
|
|
# that does a recursive copy (ie, cp -r).
|
2003-10-31 17:12:36 +00:00
|
|
|
ifeq (@target_os@,mingw32)
|
|
|
|
HAS_LN_S = no
|
|
|
|
endif
|
2005-10-07 02:39:08 +00:00
|
|
|
# Special case - on cygwin, autoconf sets LN_S to 'ln -s', but then
|
|
|
|
# that does a recursive copy (ie, cp -r).
|
|
|
|
ifeq (@target_os@,cygwin)
|
|
|
|
HAS_LN_S = no
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2003-10-31 17:12:36 +00:00
|
|
|
|
2004-11-04 08:45:18 +00:00
|
|
|
# This is used to remove an existing symlink before creating a new
|
|
|
|
# one. We don't trust 'ln -s -f' as it's unportable so we remove
|
|
|
|
# manually the existing symlink (if any) before creating a new one.
|
|
|
|
# If symlinks are supported on the platform, RM_LN_S is just 'rm -f';
|
|
|
|
# if they are not, we assume they are copies (like cp -r) and we go
|
|
|
|
# heavy-handed with 'rm -Rf'. Note - this code might need rechecking
|
|
|
|
# for the case where LN_S = 'ln', if that ever happens on some
|
|
|
|
# platforms.
|
|
|
|
ifeq ($(HAS_LN_S), yes)
|
|
|
|
RM_LN_S = rm -f
|
2005-07-20 16:00:07 +00:00
|
|
|
FRAMEWORK_VERSION_SUPPORT = yes
|
2004-11-04 08:45:18 +00:00
|
|
|
else
|
|
|
|
RM_LN_S = rm -Rf
|
2005-07-20 16:00:07 +00:00
|
|
|
FRAMEWORK_VERSION_SUPPORT = no
|
2004-11-04 08:45:18 +00:00
|
|
|
endif
|
|
|
|
|
1997-10-03 21:12:56 +00:00
|
|
|
LD = $(CC)
|
1997-09-16 01:07:48 +00:00
|
|
|
LDOUT =
|
1999-09-15 02:41:46 +00:00
|
|
|
LDFLAGS = @LDFLAGS@
|
1997-09-16 01:07:48 +00:00
|
|
|
|
1999-04-02 05:31:35 +00:00
|
|
|
AR = @AR@
|
|
|
|
AROUT =
|
1997-09-16 01:07:48 +00:00
|
|
|
ARFLAGS = rc
|
1999-04-02 05:31:35 +00:00
|
|
|
RANLIB = @RANLIB@
|
1997-09-16 01:07:48 +00:00
|
|
|
|
|
|
|
DLLTOOL = @DLLTOOL@
|
|
|
|
|
2002-03-28 15:32:09 +00:00
|
|
|
# NB: These variables are defined here only so that they can be
|
|
|
|
# overridden on the command line (so you can type 'AWK=mawk make' to
|
|
|
|
# use a different awk for that particular run of make). We should
|
|
|
|
# *NOT* set them to the full path of these tools at configure time,
|
|
|
|
# because otherwise when you change/update the tools you would need to
|
|
|
|
# reconfigure and reinstall gnustep-make! We can normally assume that
|
|
|
|
# typing 'awk' and 'sed' on the command line cause the preferred awk
|
|
|
|
# and sed programs on the system to be used. Hardcoding the full path
|
|
|
|
# (or the name) of the specific awk or sed program on this sytem here
|
|
|
|
# would make it lot more inflexible. In other words, the following
|
|
|
|
# definitions should remain like in 'AWK = awk' on all systems.
|
|
|
|
AWK = awk
|
|
|
|
SED = sed
|
1999-04-02 05:31:35 +00:00
|
|
|
YACC = yacc
|
|
|
|
BISON = bison
|
|
|
|
FLEX = flex
|
|
|
|
LEX = lex
|
2002-03-28 15:32:09 +00:00
|
|
|
CHOWN = chown
|
|
|
|
STRIP = strip
|
1997-10-14 17:31:18 +00:00
|
|
|
|
1997-10-03 22:02:27 +00:00
|
|
|
INSTALL = @HOST_INSTALL@
|
1997-10-03 21:12:56 +00:00
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2000-08-30 15:20:30 +00:00
|
|
|
TAR = @TAR@
|
1998-12-20 21:27:47 +00:00
|
|
|
MKDIRS = $(GNUSTEP_MAKEFILES)/mkinstalldirs
|
1997-10-03 21:12:56 +00:00
|
|
|
|
2004-08-01 02:33:45 +00:00
|
|
|
# Darwin specific flags
|
|
|
|
CC_CPPPRECOMP = @cc_cppprecomp@
|
|
|
|
CC_BUNDLE = @cc_bundle@
|
|
|
|
|
1997-10-02 01:29:16 +00:00
|
|
|
# The default library combination
|
1997-11-14 19:24:44 +00:00
|
|
|
default_library_combo = @ac_cv_library_combo@
|
1997-10-02 01:29:16 +00:00
|
|
|
|
2001-04-13 19:49:16 +00:00
|
|
|
# Backend bundle
|
|
|
|
BACKEND_BUNDLE=@BACKEND_BUNDLE@
|
|
|
|
|
1998-11-11 23:05:50 +00:00
|
|
|
#
|
|
|
|
# Do threading stuff.
|
|
|
|
#
|
2001-01-19 11:49:20 +00:00
|
|
|
# Warning - the base library's configure.in will extract the thread
|
|
|
|
# flags from the following line using grep/sed - so if you change the
|
|
|
|
# following lines you *need* to update the base library configure.in
|
|
|
|
# too.
|
|
|
|
#
|
1998-11-11 23:05:50 +00:00
|
|
|
ifndef objc_threaded
|
|
|
|
objc_threaded:=@objc_threaded@
|
|
|
|
endif
|
1998-09-03 14:35:49 +00:00
|
|
|
|
2003-09-29 16:46:50 +00:00
|
|
|
# Any user specified libs
|
|
|
|
CONFIG_SYSTEM_INCL=@INCLUDES@
|
1997-10-30 22:43:44 +00:00
|
|
|
CONFIG_SYSTEM_LIBS = @LIBS@
|
2003-10-10 02:52:45 +00:00
|
|
|
CONFIG_SYSTEM_LIB_DIR = @LIB_DIR@
|
1998-05-28 06:56:11 +00:00
|
|
|
|
2001-11-22 13:31:51 +00:00
|
|
|
#
|
|
|
|
# Whether the C/ObjC/C++ compiler supports auto-dependencies
|
|
|
|
# (generating dependencies of the object files from the include files
|
|
|
|
# used to compile them) via -MMD -MP flags
|
|
|
|
#
|
|
|
|
AUTO_DEPENDENCIES = @AUTO_DEPENDENCIES@
|
2004-06-19 11:09:53 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Whether the ObjC compiler supports native ObjC exceptions via
|
|
|
|
# @try/@catch/@finally/@throw.
|
|
|
|
#
|
2004-06-22 23:56:41 +00:00
|
|
|
USE_OBJC_EXCEPTIONS = @USE_OBJC_EXCEPTIONS@
|
2005-10-12 16:09:32 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Location of GNUstep's config file for this installation
|
|
|
|
#
|
|
|
|
# Warning - the base library's configure.in will extract the GNUstep
|
2006-08-10 10:09:47 +00:00
|
|
|
# config file location from the following line using grep/sed - so if
|
2005-10-12 16:09:32 +00:00
|
|
|
# you change the following lines you *need* to update the base library
|
|
|
|
# configure.in too.
|
|
|
|
#
|
2005-10-23 16:44:28 +00:00
|
|
|
# PS: At run-time, this can be overridden on the command-line, or
|
|
|
|
# via an environment variable.
|
2005-12-02 11:56:17 +00:00
|
|
|
ifeq ($(GNUSTEP_CONFIG_FILE),)
|
2005-10-20 23:09:07 +00:00
|
|
|
GNUSTEP_CONFIG_FILE = @GNUSTEP_CONFIG_FILE@
|
2005-12-02 11:56:17 +00:00
|
|
|
endif
|
2005-10-23 16:44:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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).
|
|
|
|
GNUSTEP_SYSTEM_ROOT = @GNUSTEP_SYSTEM_ROOT@
|
|
|
|
GNUSTEP_LOCAL_ROOT = @GNUSTEP_LOCAL_ROOT@
|
|
|
|
GNUSTEP_NETWORK_ROOT = @GNUSTEP_NETWORK_ROOT@
|
|
|
|
GNUSTEP_USER_DIR = @GNUSTEP_USER_DIR@
|
|
|
|
|
|
|
|
# This includes the GNUstep configuration file, but only if it exists
|
|
|
|
-include $(GNUSTEP_CONFIG_FILE)
|
|
|
|
|
|
|
|
# FIXME: determining GNUSTEP_HOME
|
2006-04-07 04:26:58 +00:00
|
|
|
GNUSTEP_HOME = $(HOME)
|
2005-10-23 16:44:28 +00:00
|
|
|
|
|
|
|
# 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!
|
2006-04-07 04:39:59 +00:00
|
|
|
ifneq ($(filter /%, $(GNUSTEP_USER_CONFIG_FILE)),)
|
2005-10-23 16:44:28 +00:00
|
|
|
# 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)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
GNUSTEP_FLATTENED = @GNUSTEP_FLATTENED@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Set GNUSTEP_USER_ROOT from GNUSTEP_USER_DIR; GNUSTEP_USER_ROOT is
|
|
|
|
# the variable used in practice
|
|
|
|
#
|
2006-04-07 04:39:59 +00:00
|
|
|
ifneq ($(filter /%, $(GNUSTEP_USER_DIR)),)
|
2005-10-23 16:44:28 +00:00
|
|
|
# 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)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# 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
|
2005-10-23 16:51:06 +00:00
|
|
|
# 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*.
|
2005-10-23 16:44:28 +00:00
|
|
|
|
|
|
|
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
|