jdk/make/common/shared/Defs.gmk
changeset 7665 bc5dbdc44e1e
parent 7463 5ab61aa7cd89
child 8201 9e6915af34ba
equal deleted inserted replaced
7483:280294134c62 7665:bc5dbdc44e1e
     1 #
     1 #
     2 # Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
   371 OUTPUTDIR:=$(call AltCheckValue,OUTPUTDIR)
   371 OUTPUTDIR:=$(call AltCheckValue,OUTPUTDIR)
   372 
   372 
   373 # Get platform specific settings
   373 # Get platform specific settings
   374 # NB: OUTPUTDIR must be defined. Otherwise hotspot import detection will not work correctly
   374 # NB: OUTPUTDIR must be defined. Otherwise hotspot import detection will not work correctly
   375 # On other hand this must be included early as it provides platform specific defines such as FullPath
   375 # On other hand this must be included early as it provides platform specific defines such as FullPath
       
   376 include $(JDK_MAKE_SHARED_DIR)/Defs-versions.gmk
       
   377 
       
   378 # Get platform specific settings (defines COMPILER_PATH)
   376 include $(JDK_MAKE_SHARED_DIR)/Defs-$(PLATFORM).gmk
   379 include $(JDK_MAKE_SHARED_DIR)/Defs-$(PLATFORM).gmk
   377 
   380 
   378 # Components
   381 # Components
   379 ifdef ALT_LANGTOOLS_DIST
   382 ifdef ALT_LANGTOOLS_DIST
   380   LANGTOOLS_DIST :=$(call FullPath,$(ALT_LANGTOOLS_DIST))
   383   LANGTOOLS_DIST :=$(call FullPath,$(ALT_LANGTOOLS_DIST))
   606   COPYRIGHT_YEAR = $(ALT_COPYRIGHT_YEAR)
   609   COPYRIGHT_YEAR = $(ALT_COPYRIGHT_YEAR)
   607 else
   610 else
   608   COPYRIGHT_YEAR = $(shell $(DATE) '+%Y')
   611   COPYRIGHT_YEAR = $(shell $(DATE) '+%Y')
   609 endif
   612 endif
   610 
   613 
   611 # Windows uses Microsoft compilers by default
   614 # Get the compiler specific settings (will run the compiler to find out)
   612 ifeq ($(PLATFORM), windows)
   615 #   NOTE: COMPILER_PATH must be set by this time.
   613   override CC_VERSION = msvc
   616 #   Up until we include this file, we don't know what specific compiler
   614 endif
   617 #   version is actually being used (i.e. what is in PATH or COMPILER_PATH).
   615 
       
   616 # Solaris uses Sun Studio compilers by default
       
   617 ifeq ($(PLATFORM), solaris)
       
   618   override CC_VERSION = sun
       
   619 endif
       
   620 
       
   621 # Linux uses GNU compilers by default
       
   622 ifeq ($(PLATFORM), linux)
       
   623   override CC_VERSION = gcc
       
   624 endif
       
   625 
       
   626 # Get the REQUIRED versions (needs CC_VERSION set)
       
   627 include $(JDK_MAKE_SHARED_DIR)/Defs-versions.gmk
       
   628 
       
   629 # Get the compiler specific settings
       
   630 include $(JDK_MAKE_SHARED_DIR)/Compiler-$(CC_VERSION).gmk
   618 include $(JDK_MAKE_SHARED_DIR)/Compiler-$(CC_VERSION).gmk
   631 
   619