diff -r efd6a05935b2 -r dd844a010010 jdk/make/common/Defs.gmk --- a/jdk/make/common/Defs.gmk Tue Sep 18 11:29:24 2012 -0700 +++ b/jdk/make/common/Defs.gmk Tue Sep 18 12:16:37 2012 -0700 @@ -109,6 +109,21 @@ endif endif +# We allow for potential specialization of build files. This has to be +# done on a file-by-file, case-by-case basis. Here we define the basic control +# over where custom files are being used. Later we will -include the custom +# Defs.gmk if present. This works best because all Makefiles include defs.gmk. +# In other cases we can either have foo.gmk include custom/foo.gmk, or +# a Makefile can do: +# include foo.gmk +# -include $CUSTOM_MAKE_DIR/foo.gmk +# +# For non-OpenJDK builds the default location is the make/closed repository. +# For OpenJDK builds a real value has to be supplied externally. +ifneq ($(OPENJDK),true) + CUSTOM_MAKE_DIR = $(BUILDDIR)/closed +endif + # # Get platform definitions # @@ -116,12 +131,6 @@ include $(JDK_TOPDIR)/make/common/Defs-$(PLATFORM).gmk # -# SE-Embedded support, if enabled -# - -include $(JDK_TOPDIR)/make/common/Defs-embedded.gmk - -# # Cross-compilation Settings # ifdef CROSS_COMPILE_ARCH @@ -611,4 +620,6 @@ $(install-importonly-file) endef +-include $(CUSTOM_MAKE_DIR)/Defs.gmk + .PHONY: all build clean clobber