# ============================================================== # Copyright (c) 1998-1999 ACT Financial Systems Pty Ltd. # All Rights Reserved. # This make library may be used and distributed under the terms # of the GNU LGPL, as published by the Free Software Foundation. # See the file COPYING for details. # ============================================================== # $Id: platforms.mk,v 1.6 2001/12/02 07:51:46 trb Exp $ #------------------------------------------------------------------------------------------------------- # text requires: #------------------------------------------------------------------------------------------------------- # refers to: host_hardware host_os_kind host_os host_os_version main_language #------------------------------------------------------------------------------------------------------- # provides variables: ms_windows unix supported_os_kinds # default_target_hardware default_target_os_kind default_target_os # default_target_os_version target_hardware target_os_kind # target_os target_os_version target_platform #------------------------------------------------------------------------------------------------------- # the OS kinds ms_windows = windows unix = unix # particular unix flavours linux = Linux include $(MKINC)/host_platform.mk # the ones we support by default # this is the default value for TARGET_OS_KINDS if the user does not specify it supported_os_kinds = $(unix) $(ms_windows) # DEPRECATED: # now we have platform recursion, these are all deprecated # need to replace them with some standard way to extract these components from target_platform # e.g. use '-' as a separator # target defaults to being identical to host default_target_os_kind = $(host_os_kind) default_target_os = $(host_os) default_target_os_version = $(host_os_version) # but for the target platform, we are interested in which main compiler is used # default_target_platform = $(target_hardware)-$(target_os)-$(target_os_version)-$($(main_language)_tool_name) # example output from configure: i686-pc-linux-gnu target_os_kind = $(default_target_os_kind) target_os = $(default_target_os) # only used in stl.mk target_os_version = $(default_target_os_version) # example output from configure: i686-pc-linux-gnu # this is --- # example of our old platform: unknown-Linux-2.2.19-gxx # should not need the OS version - people should use autoconf for such things # - indeed that is probably true for all aspects of target_platform