hotspot/make/bsd/makefiles/buildtree.make
changeset 34319 9d6dd3c5ca23
parent 33980 cbd63978deb5
parent 34289 2d1821a50263
equal deleted inserted replaced
34096:5ac6287ec71a 34319:9d6dd3c5ca23
    46 # flags.make	- with macro settings
    46 # flags.make	- with macro settings
    47 # vm.make	- to support making "$(MAKE) -v vm.make" in makefiles
    47 # vm.make	- to support making "$(MAKE) -v vm.make" in makefiles
    48 # adlc.make	-
    48 # adlc.make	-
    49 # trace.make	- generate tracing event and type definitions
    49 # trace.make	- generate tracing event and type definitions
    50 # jvmti.make	- generate JVMTI bindings from the spec (JSR-163)
    50 # jvmti.make	- generate JVMTI bindings from the spec (JSR-163)
    51 # sa.make	- generate SA jar file and natives
       
    52 #
    51 #
    53 # The makefiles are split this way so that "make foo" will run faster by not
    52 # The makefiles are split this way so that "make foo" will run faster by not
    54 # having to read the dependency files for the vm.
    53 # having to read the dependency files for the vm.
    55 
    54 
    56 # needs to be set here since this Makefile doesn't include defs.make
    55 # needs to be set here since this Makefile doesn't include defs.make
   127 
   126 
   128 # For dependencies and recursive makes.
   127 # For dependencies and recursive makes.
   129 BUILDTREE_MAKE	= $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
   128 BUILDTREE_MAKE	= $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
   130 
   129 
   131 # dtrace.make is used on BSD versions that implement Dtrace (like MacOS X)
   130 # dtrace.make is used on BSD versions that implement Dtrace (like MacOS X)
   132 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make trace.make sa.make dtrace.make
   131 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make trace.make dtrace.make
   133 
   132 
   134 BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
   133 BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
   135 	SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
   134 	SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
   136 
   135 
   137 # Define variables to be set in flags.make.
   136 # Define variables to be set in flags.make.
   211 	echo "BUILDARCH = $(BUILDARCH)"; \
   210 	echo "BUILDARCH = $(BUILDARCH)"; \
   212 	echo "LIBARCH = $(LIBARCH)"; \
   211 	echo "LIBARCH = $(LIBARCH)"; \
   213 	echo "TARGET = $(TARGET)"; \
   212 	echo "TARGET = $(TARGET)"; \
   214 	echo "HOTSPOT_VERSION_STRING = $(HOTSPOT_VERSION_STRING)"; \
   213 	echo "HOTSPOT_VERSION_STRING = $(HOTSPOT_VERSION_STRING)"; \
   215 	echo "VERSION_STRING = $(VERSION_STRING)"; \
   214 	echo "VERSION_STRING = $(VERSION_STRING)"; \
   216 	echo "SA_BUILD_VERSION = $(HOTSPOT_VERSION_STRING)"; \
       
   217 	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
   215 	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
   218 	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
   216 	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
   219 	echo "OPENJDK = $(OPENJDK)"; \
   217 	echo "OPENJDK = $(OPENJDK)"; \
   220 	echo "$(LP64_SETTING/$(DATA_MODE))"; \
   218 	echo "$(LP64_SETTING/$(DATA_MODE))"; \
   221 	echo; \
   219 	echo; \
   353 	echo include flags.make; \
   351 	echo include flags.make; \
   354 	echo; \
   352 	echo; \
   355 	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
   353 	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
   356 	) > $@
   354 	) > $@
   357 
   355 
   358 sa.make: $(BUILDTREE_MAKE)
       
   359 	@echo $(LOG_INFO) Creating $@ ...
       
   360 	$(QUIETLY) ( \
       
   361 	$(BUILDTREE_COMMENT); \
       
   362 	echo; \
       
   363 	echo include flags.make; \
       
   364 	echo; \
       
   365 	echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
       
   366 	) > $@
       
   367 
       
   368 dtrace.make: $(BUILDTREE_MAKE)
   356 dtrace.make: $(BUILDTREE_MAKE)
   369 	@echo $(LOG_INFO) Creating $@ ...
   357 	@echo $(LOG_INFO) Creating $@ ...
   370 	$(QUIETLY) ( \
   358 	$(QUIETLY) ( \
   371 	$(BUILDTREE_COMMENT); \
   359 	$(BUILDTREE_COMMENT); \
   372 	echo; \
   360 	echo; \