1997-10-17 00:55:41 +00:00
|
|
|
#
|
|
|
|
# names.make
|
|
|
|
#
|
|
|
|
# Determine the host and target systems
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
# Date: October 1997
|
|
|
|
#
|
|
|
|
# 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,
|
|
|
|
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
# Run config.guess to guess the host
|
|
|
|
|
|
|
|
ifneq ($(internal_names_clean), yes)
|
1997-11-13 03:18:16 +00:00
|
|
|
ifeq ($(GNUSTEP_HOST),)
|
|
|
|
GNUSTEP_HOST := $(shell $(CONFIG_GUESS_SCRIPT))
|
|
|
|
GNUSTEP_HOST_CPU := $(shell $(CONFIG_CPU_SCRIPT) $(GNUSTEP_HOST))
|
|
|
|
GNUSTEP_HOST_VENDOR := $(shell $(CONFIG_VENDOR_SCRIPT) $(GNUSTEP_HOST))
|
|
|
|
GNUSTEP_HOST_OS := $(shell $(CONFIG_OS_SCRIPT) $(GNUSTEP_HOST))
|
|
|
|
|
|
|
|
GNUSTEP_HOST_CPU := $(shell $(CLEAN_CPU_SCRIPT) $(GNUSTEP_HOST_CPU))
|
|
|
|
GNUSTEP_HOST_VENDOR := $(shell $(CLEAN_VENDOR_SCRIPT) $(GNUSTEP_HOST_VENDOR))
|
|
|
|
GNUSTEP_HOST_OS := $(shell $(CLEAN_OS_SCRIPT) $(GNUSTEP_HOST_OS))
|
|
|
|
endif
|
1997-10-17 00:55:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# The user can specify a `target' variable when running make
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(strip $(target)),)
|
|
|
|
|
|
|
|
# The host is the default target
|
|
|
|
GNUSTEP_TARGET := $(GNUSTEP_HOST)
|
|
|
|
GNUSTEP_TARGET_CPU := $(GNUSTEP_HOST_CPU)
|
|
|
|
GNUSTEP_TARGET_VENDOR := $(GNUSTEP_HOST_VENDOR)
|
|
|
|
GNUSTEP_TARGET_OS := $(GNUSTEP_HOST_OS)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
#
|
|
|
|
# Parse the target variable
|
|
|
|
#
|
|
|
|
|
|
|
|
GNUSTEP_TARGET := $(shell $(CONFIG_SUB_SCRIPT) $(target))
|
|
|
|
GNUSTEP_TARGET_CPU := $(shell $(CONFIG_CPU_SCRIPT) $(GNUSTEP_TARGET))
|
|
|
|
GNUSTEP_TARGET_VENDOR := $(shell $(CONFIG_VENDOR_SCRIPT) $(GNUSTEP_TARGET))
|
|
|
|
GNUSTEP_TARGET_OS := $(shell $(CONFIG_OS_SCRIPT) $(GNUSTEP_TARGET))
|
|
|
|
|
1997-11-13 03:18:16 +00:00
|
|
|
GNUSTEP_TARGET_CPU := $(shell $(CLEAN_CPU_SCRIPT) $(GNUSTEP_TARGET_CPU))
|
|
|
|
GNUSTEP_TARGET_VENDOR := $(shell $(CLEAN_VENDOR_SCRIPT) $(GNUSTEP_TARGET_VENDOR))
|
|
|
|
GNUSTEP_TARGET_OS := $(shell $(CLEAN_OS_SCRIPT) $(GNUSTEP_TARGET_OS))
|
|
|
|
|
1997-10-17 00:55:41 +00:00
|
|
|
endif
|
|
|
|
|
1997-11-13 03:18:16 +00:00
|
|
|
ifneq ($(arch),)
|
|
|
|
export CLEANED_ARCH = $(foreach a, $(arch), $(shell $(CLEAN_CPU_SCRIPT) $(a)))
|
|
|
|
endif
|