jdk/make/common/shared/Sanity.gmk
changeset 4665 d14dc3d9e1fa
parent 3742 5e1b8bc3cb1a
child 4808 37f605425f74
equal deleted inserted replaced
4664:0b0443cbc448 4665:d14dc3d9e1fa
  1115 #    exported but do represent VM interfaces used by the rest of the jdk.
  1115 #    exported but do represent VM interfaces used by the rest of the jdk.
  1116 #    So these 3 will not be found in a promoted build and can only
  1116 #    So these 3 will not be found in a promoted build and can only
  1117 #    be checked when this represents a full control build (i.e. the
  1117 #    be checked when this represents a full control build (i.e. the
  1118 #    HOTSPOT_IMPORT_PATH includes these files in it's 'include' directory).
  1118 #    HOTSPOT_IMPORT_PATH includes these files in it's 'include' directory).
  1119 $(TEMPDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
  1119 $(TEMPDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
  1120 	@$(install-file)
  1120 	@$(install-non-module-file)
  1121 	@$(RM) $@.IMPORT
  1121 	@$(RM) $@.IMPORT
  1122 	@if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(@F) ]; then \
  1122 	@if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(@F) ]; then \
  1123 	  $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(@F) $@.IMPORT ; \
  1123 	  $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(@F) $@.IMPORT ; \
  1124 	elif [ "$(@F)" != "jvm.h" -a "$(@F)" != "jmm.h" ] ; then \
  1124 	elif [ "$(@F)" != "jvm.h" -a "$(@F)" != "jmm.h" ] ; then \
  1125 	  $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \
  1125 	  $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \
  1129 	else \
  1129 	else \
  1130 	  $(CP) $< $@.IMPORT; \
  1130 	  $(CP) $< $@.IMPORT; \
  1131 	fi
  1131 	fi
  1132 
  1132 
  1133 $(TEMPDIR)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
  1133 $(TEMPDIR)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
  1134 	@$(install-file)
  1134 	@$(install-non-module-file)
  1135 	@$(RM) $@.IMPORT
  1135 	@$(RM) $@.IMPORT
  1136 	@if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) ]; then \
  1136 	@if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) ]; then \
  1137 	  $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) $@.IMPORT ; \
  1137 	  $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) $@.IMPORT ; \
  1138 	elif [ "$(@F)" != "jvm_md.h" ] ; then \
  1138 	elif [ "$(@F)" != "jvm_md.h" ] ; then \
  1139 	  $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \
  1139 	  $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \