make/solaris/makefiles/buildtree.make

Print this page


   1 #
   2 # Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


  93 
  94 ifeq            ($(VARIANT),tiered)
  95 TOPLEVEL_EXCLUDE_DIRS   = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent
  96 else
  97 ifeq            ($(VARIANT),compiler2)
  98 TOPLEVEL_EXCLUDE_DIRS   = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent
  99 else
 100 # compiler1 and core use the same exclude list
 101 TOPLEVEL_EXCLUDE_DIRS   = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent
 102 endif
 103 endif
 104 
 105 # Get things from the platform file.
 106 COMPILER        = $(shell sed -n 's/^compiler[  ]*=[    ]*//p' $(PLATFORM_FILE))
 107 
 108 SIMPLE_DIRS     = \
 109         $(PLATFORM_DIR)/generated/dependencies \
 110         $(PLATFORM_DIR)/generated/adfiles \
 111         $(PLATFORM_DIR)/generated/jvmtifiles
 112 
 113 TARGETS      = debug fastdebug jvmg optimized product profiled
 114 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
 115 
 116 # For dependencies and recursive makes.
 117 BUILDTREE_MAKE  = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
 118 
 119 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \
 120         env.sh env.csh jdkpath.sh
 121 
 122 BUILDTREE_VARS  = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
 123         ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
 124 
 125 # Define variables to be set in flags.make.
 126 # Default values are set in make/defs.make.
 127 ifeq ($(HOTSPOT_BUILD_VERSION),)
 128   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
 129 else
 130   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
 131 endif
 132 # Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
 133 ifndef HOTSPOT_BUILD_USER


 244         [ -n "$(ZIP_DEBUGINFO_FILES)" ] && \
 245             echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \
 246         [ -n "$(ZIPEXE)" ] && \
 247             echo && echo "ZIPEXE = $(ZIPEXE)"; \
 248         [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \
 249             echo && \
 250             echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \
 251             echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \
 252         echo; \
 253         [ -n "$(SPEC)" ] && \
 254             echo "include $(SPEC)"; \
 255         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \
 256         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \
 257         ) > $@
 258 
 259 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
 260         @echo Creating $@ ...
 261         $(QUIETLY) ( \
 262         $(BUILDTREE_COMMENT); \
 263         echo; \
 264         [ "$(TARGET)" = profiled ] && \
 265         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \
 266         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \
 267         ) > $@
 268 
 269 ../shared_dirs.lst:  $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm
 270         @echo Creating directory list $@
 271         $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \
 272           find $(HS_ALT_SRC)/share/vm/* -prune \
 273           -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
 274           \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \
 275         fi;
 276         $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \
 277         -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
 278         \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@
 279 
 280 Makefile: $(BUILDTREE_MAKE)
 281         @echo Creating $@ ...
 282         $(QUIETLY) ( \
 283         $(BUILDTREE_COMMENT); \
 284         echo; \
 285         echo include flags.make; \


   1 #
   2 # Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


  93 
  94 ifeq            ($(VARIANT),tiered)
  95 TOPLEVEL_EXCLUDE_DIRS   = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent
  96 else
  97 ifeq            ($(VARIANT),compiler2)
  98 TOPLEVEL_EXCLUDE_DIRS   = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent
  99 else
 100 # compiler1 and core use the same exclude list
 101 TOPLEVEL_EXCLUDE_DIRS   = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent
 102 endif
 103 endif
 104 
 105 # Get things from the platform file.
 106 COMPILER        = $(shell sed -n 's/^compiler[  ]*=[    ]*//p' $(PLATFORM_FILE))
 107 
 108 SIMPLE_DIRS     = \
 109         $(PLATFORM_DIR)/generated/dependencies \
 110         $(PLATFORM_DIR)/generated/adfiles \
 111         $(PLATFORM_DIR)/generated/jvmtifiles
 112 
 113 TARGETS      = debug fastdebug optimized product
 114 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
 115 
 116 # For dependencies and recursive makes.
 117 BUILDTREE_MAKE  = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
 118 
 119 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \
 120         env.sh env.csh jdkpath.sh
 121 
 122 BUILDTREE_VARS  = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
 123         ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
 124 
 125 # Define variables to be set in flags.make.
 126 # Default values are set in make/defs.make.
 127 ifeq ($(HOTSPOT_BUILD_VERSION),)
 128   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
 129 else
 130   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
 131 endif
 132 # Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
 133 ifndef HOTSPOT_BUILD_USER


 244         [ -n "$(ZIP_DEBUGINFO_FILES)" ] && \
 245             echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \
 246         [ -n "$(ZIPEXE)" ] && \
 247             echo && echo "ZIPEXE = $(ZIPEXE)"; \
 248         [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \
 249             echo && \
 250             echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \
 251             echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \
 252         echo; \
 253         [ -n "$(SPEC)" ] && \
 254             echo "include $(SPEC)"; \
 255         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \
 256         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \
 257         ) > $@
 258 
 259 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
 260         @echo Creating $@ ...
 261         $(QUIETLY) ( \
 262         $(BUILDTREE_COMMENT); \
 263         echo; \


 264         echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \
 265         ) > $@
 266 
 267 ../shared_dirs.lst:  $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm
 268         @echo Creating directory list $@
 269         $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \
 270           find $(HS_ALT_SRC)/share/vm/* -prune \
 271           -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
 272           \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \
 273         fi;
 274         $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \
 275         -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
 276         \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@
 277 
 278 Makefile: $(BUILDTREE_MAKE)
 279         @echo Creating $@ ...
 280         $(QUIETLY) ( \
 281         $(BUILDTREE_COMMENT); \
 282         echo; \
 283         echo include flags.make; \