hotspot/make/bsd/Makefile
changeset 17006 b9bfa72b7dda
parent 16381 806d87cb0cc7
child 20686 1fa9a75192c3
equal deleted inserted replaced
17004:4d2371d76a19 17006:b9bfa72b7dda
     1 #
     1 #
     2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 1999, 2013, 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.
     7 # published by the Free Software Foundation.
   140 #
   140 #
   141 #       Target          Tree Type       Build Dir
   141 #       Target          Tree Type       Build Dir
   142 #
   142 #
   143 #       debug           compiler2       <os>_<arch>_compiler2/debug
   143 #       debug           compiler2       <os>_<arch>_compiler2/debug
   144 #       fastdebug       compiler2       <os>_<arch>_compiler2/fastdebug
   144 #       fastdebug       compiler2       <os>_<arch>_compiler2/fastdebug
   145 #       jvmg            compiler2       <os>_<arch>_compiler2/jvmg
       
   146 #       optimized       compiler2       <os>_<arch>_compiler2/optimized
   145 #       optimized       compiler2       <os>_<arch>_compiler2/optimized
   147 #       profiled        compiler2       <os>_<arch>_compiler2/profiled
       
   148 #       product         compiler2       <os>_<arch>_compiler2/product
   146 #       product         compiler2       <os>_<arch>_compiler2/product
   149 #
   147 #
   150 #       debug1          compiler1       <os>_<arch>_compiler1/debug
   148 #       debug1          compiler1       <os>_<arch>_compiler1/debug
   151 #       fastdebug1      compiler1       <os>_<arch>_compiler1/fastdebug
   149 #       fastdebug1      compiler1       <os>_<arch>_compiler1/fastdebug
   152 #       jvmg1           compiler1       <os>_<arch>_compiler1/jvmg
       
   153 #       optimized1      compiler1       <os>_<arch>_compiler1/optimized
   150 #       optimized1      compiler1       <os>_<arch>_compiler1/optimized
   154 #       profiled1       compiler1       <os>_<arch>_compiler1/profiled
       
   155 #       product1        compiler1       <os>_<arch>_compiler1/product
   151 #       product1        compiler1       <os>_<arch>_compiler1/product
   156 #
   152 #
   157 #       debugcore       core            <os>_<arch>_core/debug
   153 #       debugcore       core            <os>_<arch>_core/debug
   158 #       fastdebugcore   core            <os>_<arch>_core/fastdebug
   154 #       fastdebugcore   core            <os>_<arch>_core/fastdebug
   159 #       jvmgcore        core            <os>_<arch>_core/jvmg
       
   160 #       optimizedcore   core            <os>_<arch>_core/optimized
   155 #       optimizedcore   core            <os>_<arch>_core/optimized
   161 #       profiledcore    core            <os>_<arch>_core/profiled
       
   162 #       productcore     core            <os>_<arch>_core/product
   156 #       productcore     core            <os>_<arch>_core/product
   163 #
   157 #
   164 #       debugzero       zero            <os>_<arch>_zero/debug
   158 #       debugzero       zero            <os>_<arch>_zero/debug
   165 #       fastdebugzero   zero            <os>_<arch>_zero/fastdebug
   159 #       fastdebugzero   zero            <os>_<arch>_zero/fastdebug
   166 #       jvmgzero        zero            <os>_<arch>_zero/jvmg
       
   167 #       optimizedzero   zero            <os>_<arch>_zero/optimized
   160 #       optimizedzero   zero            <os>_<arch>_zero/optimized
   168 #       profiledzero    zero            <os>_<arch>_zero/profiled
       
   169 #       productzero     zero            <os>_<arch>_zero/product
   161 #       productzero     zero            <os>_<arch>_zero/product
   170 #
   162 #
   171 #       debugshark      shark           <os>_<arch>_shark/debug
   163 #       debugshark      shark           <os>_<arch>_shark/debug
   172 #       fastdebugshark  shark           <os>_<arch>_shark/fastdebug
   164 #       fastdebugshark  shark           <os>_<arch>_shark/fastdebug
   173 #       jvmgshark       shark           <os>_<arch>_shark/jvmg
       
   174 #       optimizedshark  shark           <os>_<arch>_shark/optimized
   165 #       optimizedshark  shark           <os>_<arch>_shark/optimized
   175 #       profiledshark   shark           <os>_<arch>_shark/profiled
       
   176 #       productshark    shark           <os>_<arch>_shark/product
   166 #       productshark    shark           <os>_<arch>_shark/product
   177 #
   167 #
   178 #       fastdebugminimal1 minimal1      <os>_<arch>_minimal1/fastdebug
   168 #       fastdebugminimal1 minimal1      <os>_<arch>_minimal1/fastdebug
   179 #       jvmgminimal1      minimal1      <os>_<arch>_minimal1/jvmg
   169 #       debugminimal1     minimal1      <os>_<arch>_minimal1/debug
   180 #       productminimal1   minimal1      <os>_<arch>_minimal1/product
   170 #       productminimal1   minimal1      <os>_<arch>_minimal1/product
   181 #
   171 #
   182 # What you get with each target:
   172 # What you get with each target:
   183 #
   173 #
   184 # debug*     - "thin" libjvm - debug info linked into the gamma launcher
   174 # debug*     - debug compile with asserts enabled
   185 # fastdebug* - optimized compile, but with asserts enabled
   175 # fastdebug* - optimized compile, but with asserts enabled
   186 # jvmg*      - "fat" libjvm - debug info linked into libjvm.so
       
   187 # optimized* - optimized compile, no asserts
   176 # optimized* - optimized compile, no asserts
   188 # profiled*  - gprof
       
   189 # product*   - the shippable thing:  optimized compile, no asserts, -DPRODUCT
   177 # product*   - the shippable thing:  optimized compile, no asserts, -DPRODUCT
   190 
   178 
   191 # This target list needs to be coordinated with the usage message
   179 # This target list needs to be coordinated with the usage message
   192 # in the build.sh script:
   180 # in the build.sh script:
   193 TARGETS           = debug jvmg fastdebug optimized profiled product
   181 TARGETS           = debug fastdebug optimized product
   194 
   182 
   195 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
   183 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
   196   SUBDIR_DOCS     = $(OSNAME)_$(VARIANTARCH)_docs
   184   SUBDIR_DOCS     = $(OSNAME)_$(VARIANTARCH)_docs
   197 else
   185 else
   198   SUBDIR_DOCS     = $(OSNAME)_$(BUILDARCH)_docs
   186   SUBDIR_DOCS     = $(OSNAME)_$(BUILDARCH)_docs
   352 docs: checks
   340 docs: checks
   353 	$(QUIETLY) mkdir -p $(SUBDIR_DOCS)
   341 	$(QUIETLY) mkdir -p $(SUBDIR_DOCS)
   354 	$(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) jvmtidocs
   342 	$(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) jvmtidocs
   355 
   343 
   356 # Synonyms for win32-like targets.
   344 # Synonyms for win32-like targets.
   357 compiler2:  jvmg product
   345 compiler2:  debug product
   358 
   346 
   359 compiler1:  jvmg1 product1
   347 compiler1:  debug1 product1
   360 
   348 
   361 core: jvmgcore productcore
   349 core: debugcore productcore
   362 
   350 
   363 zero: jvmgzero productzero
   351 zero: debugzero productzero
   364 
   352 
   365 shark: jvmgshark productshark
   353 shark: debugshark productshark
       
   354 
       
   355 warn_jvmg_deprecated:
       
   356 	echo "Warning: The jvmg target has been replaced with debug"
       
   357 	echo "Warning: Please update your usage"
       
   358 
       
   359 jvmg: warn_jvmg_deprecated debug
       
   360 
       
   361 jvmg1: warn_jvmg_deprecated debug1
       
   362 
       
   363 jvmgcore: warn_jvmg_deprecated debugcore
       
   364 
       
   365 jvmgzero: warn_jvmg_deprecated debugzero
       
   366 
       
   367 jvmgshark: warn_jvmg_deprecated debugshark
   366 
   368 
   367 clean_docs:
   369 clean_docs:
   368 	rm -rf $(SUBDIR_DOCS)
   370 	rm -rf $(SUBDIR_DOCS)
   369 
   371 
   370 clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1:
   372 clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1: