提交 ec017215 编写于 作者: M mchung

6915413: Module build: building of specified jdk components instead of all

Summary: Define new SUBDIRS_* variables for specifying components for one group
Reviewed-by: ohair
上级 7b912547
...@@ -240,7 +240,12 @@ import_product: ...@@ -240,7 +240,12 @@ import_product:
all build:: sanity-all post-sanity-all all build:: sanity-all post-sanity-all
SUBDIRS = tools java javax org sun sunw com jpda mkdemo mksample launchers SUBDIRS = tools java javax sun com
SUBDIRS_tools = launchers
SUBDIRS_misc = org sunw jpda mkdemo mksample
include $(BUILDDIR)/common/Subdirs.gmk
all build:: all build::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,8 @@ PRODUCT = com ...@@ -32,6 +32,8 @@ PRODUCT = com
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = sun SUBDIRS = sun
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -38,10 +38,19 @@ ifndef OPENJDK ...@@ -38,10 +38,19 @@ ifndef OPENJDK
endif endif
endif endif
# jarsigner is part of JRE
SUBDIRS = java security net/ssl jarsigner
SUBDIRS_management = jmx
SUBDIRS_desktop = image inputmethods
SUBDIRS_enterprise = crypto/provider jndi \
org xml rowset net/httpserver
SUBDIRS_misc = $(SCRIPT_SUBDIR) tracing servicetag nio demo
# Omit mirror since it's built with the apt tool. # Omit mirror since it's built with the apt tool.
SUBDIRS = $(SCRIPT_SUBDIR) image security crypto/provider jndi jmx \ SUBDIRS_tools = tools
java inputmethods org xml rowset net/httpserver net/ssl demo \
tools jarsigner tracing servicetag nio include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -38,6 +38,8 @@ PRODUCT = sun ...@@ -38,6 +38,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = jvmti SUBDIRS = jvmti
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -38,6 +38,8 @@ PRODUCT = sun ...@@ -38,6 +38,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = hprof SUBDIRS = hprof
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -32,6 +32,8 @@ PRODUCT = sun ...@@ -32,6 +32,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = indicim thaiim SUBDIRS = indicim thaiim
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -31,7 +31,10 @@ BUILDDIR = ../../.. ...@@ -31,7 +31,10 @@ BUILDDIR = ../../..
PRODUCT = plugin PRODUCT = plugin
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = browser pack SUBDIRS = pack
SUBDIRS_misc = browser
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -32,6 +32,8 @@ PRODUCT = plugin ...@@ -32,6 +32,8 @@ PRODUCT = plugin
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = dom net SUBDIRS = dom net
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -51,6 +51,8 @@ else ...@@ -51,6 +51,8 @@ else
SUBDIRS = snmp SUBDIRS = snmp
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build: all build:
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -31,6 +31,8 @@ BUILDDIR = ../../.. ...@@ -31,6 +31,8 @@ BUILDDIR = ../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = toolkit cosnaming ldap rmi dns SUBDIRS = toolkit cosnaming ldap rmi dns
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -31,6 +31,8 @@ BUILDDIR = ../../../.. ...@@ -31,6 +31,8 @@ BUILDDIR = ../../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = registry SUBDIRS = registry
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -31,6 +31,8 @@ BUILDDIR = ../../.. ...@@ -31,6 +31,8 @@ BUILDDIR = ../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = sctp SUBDIRS = sctp
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,8 @@ PRODUCT = org ...@@ -32,6 +32,8 @@ PRODUCT = org
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = apache SUBDIRS = apache
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -31,6 +31,7 @@ BUILDDIR = ../../../.. ...@@ -31,6 +31,7 @@ BUILDDIR = ../../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = xml SUBDIRS = xml
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -30,7 +30,10 @@ ...@@ -30,7 +30,10 @@
BUILDDIR = ../../.. BUILDDIR = ../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = jgss sasl auth auth/module SUBDIRS = auth
SUBDIRS_misc = jgss sasl auth/module
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -35,6 +35,8 @@ include $(BUILDDIR)/common/Defs.gmk ...@@ -35,6 +35,8 @@ include $(BUILDDIR)/common/Defs.gmk
AUTO_FILES_JAVA_DIRS = com/sun/tools/extcheck AUTO_FILES_JAVA_DIRS = com/sun/tools/extcheck
SUBDIRS = attach SUBDIRS = attach
include $(BUILDDIR)/common/Subdirs.gmk
all build: all build:
$(SUBDIRS-loop) $(SUBDIRS-loop)
clean clobber:: clean clobber::
......
...@@ -33,6 +33,8 @@ PRODUCT = sun ...@@ -33,6 +33,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = dtrace SUBDIRS = dtrace
include $(BUILDDIR)/common/Subdirs.gmk
all build: all build:
$(SUBDIRS-loop) $(SUBDIRS-loop)
clean clobber:: clean clobber::
......
...@@ -576,17 +576,17 @@ endef ...@@ -576,17 +576,17 @@ endef
define install-file define install-file
$(prep-target) $(prep-target)
$(CP) $< $@ $(CP) $< $@
$(install-module-file) @$(install-module-file)
endef endef
define chmod-file define chmod-file
$(CHMOD) $1 $@ $(CHMOD) $1 $@
$(call chmod-module-file, $1) @$(call chmod-module-file, $1)
endef endef
define install-sym-link define install-sym-link
$(LN) -s $1 $@ $(LN) -s $1 $@
$(call install-module-sym-link, $1) @$(call install-module-sym-link, $1)
endef endef
# #
...@@ -607,131 +607,9 @@ define java-vm-cleanup ...@@ -607,131 +607,9 @@ define java-vm-cleanup
if [ -w $(HOTSPOT_LOG_NAME) ] ; then $(RM) $(HOTSPOT_LOG_NAME); fi if [ -w $(HOTSPOT_LOG_NAME) ] ; then $(RM) $(HOTSPOT_LOG_NAME); fi
endef endef
# Default make settings for processing SUBDIRS with clobber or clean names
SUBDIRS_MAKEFLAGS-clobber = INCREMENTAL_BUILD=false
SUBDIRS_MAKEFLAGS-clean = INCREMENTAL_BUILD=false
# Current directory # Current directory
CURRENT_DIRECTORY := $(shell $(PWD)) CURRENT_DIRECTORY := $(shell $(PWD))
# If no timing wanted, we need to define these as empty
ifdef NO_TIMING
TIMING_ID:=NA
define TIMING_start
t=0:0:0:0
endef
define TIMING_end
time_used=0
endef
else # NO_TIMING
# Default timing id
TIMING_ID:=$(shell $(BASENAME) $(CURRENT_DIRECTORY))
# Timing start (must be used in same shell, e.g. same command line)
# Defines the shell variable $1 to have the start time.
define TIMING_start
$1=`$(DATE) +%j:%H:%M:%S`
endef
# Timing end (must be used in same shell, e.g. same command line)
# Expects shell variable $1 to have been defined as the start time.
# Expects shell variable $2 to have timing id string
# Sets total_seconds shell variable as the total seconds used.
# Sets time_used shell variable to contain format "%dh%dm%ds"
define TIMING_end
begTime="$${$1}"; \
timing_id="$${$2}"; \
endTime=`$(DATE) +%j:%H:%M:%S`; \
d1=`$(ECHO) $${begTime} | $(CUT) -d':' -f1 | $(SED) -e 's@^0*@@'`; \
if [ "$${d1}" = "" ] ; then d1=0; fi; \
h1=`$(ECHO) $${begTime} | $(CUT) -d':' -f2 | $(SED) -e 's@^0*@@'`; \
if [ "$${h1}" = "" ] ; then h1=0; fi; \
m1=`$(ECHO) $${begTime} | $(CUT) -d':' -f3 | $(SED) -e 's@^0*@@'`; \
if [ "$${m1}" = "" ] ; then m1=0; fi; \
s1=`$(ECHO) $${begTime} | $(CUT) -d':' -f4 | $(SED) -e 's@^0*@@'`; \
if [ "$${s1}" = "" ] ; then s1=0; fi; \
d2=`$(ECHO) $${endTime} | $(CUT) -d':' -f1 | $(SED) -e 's@^0*@@'`; \
if [ "$${d2}" = "" ] ; then d2=0; fi; \
h2=`$(ECHO) $${endTime} | $(CUT) -d':' -f2 | $(SED) -e 's@^0*@@'`; \
if [ "$${h2}" = "" ] ; then h2=0; fi; \
m2=`$(ECHO) $${endTime} | $(CUT) -d':' -f3 | $(SED) -e 's@^0*@@'`; \
if [ "$${m2}" = "" ] ; then m2=0; fi; \
s2=`$(ECHO) $${endTime} | $(CUT) -d':' -f4 | $(SED) -e 's@^0*@@'`; \
if [ "$${s2}" = "" ] ; then s2=0; fi; \
t1_secs=`$(EXPR) $${d1} '*' 60 '*' 60 '*' 24 '+' $${h1} '*' 60 '*' 60 \
'+' $${m1} '*' 60 '+' $${s1}`; \
t2_secs=`$(EXPR) $${d2} '*' 60 '*' 60 '*' 24 '+' $${h2} '*' 60 '*' 60 \
'+' $${m2} '*' 60 '+' $${s2}`; \
total_seconds=`$(EXPR) $${t2_secs} '-' $${t1_secs}`; \
if [ "$${total_seconds}" -lt 0 ] ; then total_seconds=0; fi; \
t_hour=`$(EXPR) $${total_seconds} '/' '(' 60 '*' 60 ')'`h; \
t_min=`$(EXPR) '(' $${total_seconds} '%' '(' 60 '*' 60 ')' ')' '/' 60`m; \
t_sec=`$(EXPR) $${total_seconds} '%' 60`s; \
time_used=$${t_sec}; \
if [ "$${t_hour}" != "0h" ] ; then \
time_used=$${t_hour}$${t_min}$${t_sec}; \
elif [ "$${t_min}" != "0m" ] ; then \
time_used=$${t_min}$${t_sec}; \
else \
time_used=$${t_sec}; \
fi; \
$(PRINTF) " Timing: %05d seconds or %s for %s\n" \
$${total_seconds} $${time_used} $${timing_id}
endef
endif # NO_TIMING
# Given a SUBDIRS list, cd into them and make them
# SUBDIRS_MAKEFLAGS Make settings for a subdir make
# SUBDIRS_MAKEFLAGS-$@ Make settings specific to this target
define SUBDIRS-loop
@$(ECHO) "Begin Processing SUBDIRS: $(SUBDIRS)"
@for i in DUMMY $(SUBDIRS) ; do \
if [ "$$i" != "DUMMY" ] ; then \
$(ECHO) ">>>Recursively making "$$i" "$@" @ `$(DATE)` ..."; \
timing_id="$(TIMING_ID)-`$(BASENAME) $${i}`"; \
$(call TIMING_start,startTime); \
curDir=$(CURRENT_DIRECTORY); \
$(CD) $$i; $(MAKE) $@ TIMING_ID=$${timing_id} \
$(SUBDIRS_MAKEFLAGS) \
$(SUBDIRS_MAKEFLAGS-$@) \
FULL_VERSION=$(FULL_VERSION) \
RELEASE=$(RELEASE) || exit 1; \
$(CD) $${curDir}; \
$(call TIMING_end,startTime,timing_id); \
$(ECHO) "<<<Finished Recursively making "$$i" "$@" @ `$(DATE)`." ; \
fi ; \
done
@$(ECHO) "Done Processing SUBDIRS: $(SUBDIRS)"
endef
# Given a OTHERSUBDIRS list, cd into them and make them (extra loop define)
# OTHERSUBDIRS_MAKEFLAGS Make settings for a subdir make
define OTHERSUBDIRS-loop
@$(ECHO) "Begin Processing OTHERSUBDIRS: $(OTHERSUBDIRS)"
@for i in DUMMY $(OTHERSUBDIRS) ; do \
if [ "$$i" != "DUMMY" ] ; then \
$(ECHO) ">>>Recursively making "$$i" "$@" @ `$(DATE)` ..."; \
timing_id="$(TIMING_ID)-`$(BASENAME) $${i}`"; \
$(call TIMING_start,startTime); \
curDir=$(CURRENT_DIRECTORY); \
$(CD) $$i; $(MAKE) $@ TIMING_ID=$${timing_id} \
$(OTHERSUBDIRS_MAKEFLAGS) \
FULL_VERSION=$(FULL_VERSION) \
RELEASE=$(RELEASE) || exit 1; \
$(CD) $${curDir}; \
$(call TIMING_end,startTime,timing_id); \
$(ECHO) "<<<Finished Recursively making "$$i" "$@" @ `$(DATE)`." ; \
fi ; \
done
@$(ECHO) "Done Processing OTHERSUBDIRS: $(OTHERSUBDIRS)"
endef
# #
# Create BYFILE OPT and DBG settings, if CFLAGS_OPT/foobar.o is set then it is # Create BYFILE OPT and DBG settings, if CFLAGS_OPT/foobar.o is set then it is
# used for this file, otherwise the default settings are used. # used for this file, otherwise the default settings are used.
...@@ -819,7 +697,7 @@ endef ...@@ -819,7 +697,7 @@ endef
define install-import-file define install-import-file
$(install-importonly-file) $(install-importonly-file)
$(install-module-file) @$(install-module-file)
endef endef
.PHONY: all build clean clobber .PHONY: all build clean clobber
...@@ -71,7 +71,8 @@ sanity-base: pre-sanity \ ...@@ -71,7 +71,8 @@ sanity-base: pre-sanity \
sane-cacerts \ sane-cacerts \
sane-ant_version \ sane-ant_version \
sane-zip_version \ sane-zip_version \
sane-msvcrt_path sane-msvcrt_path \
sane-build_modules
# The rules sanity-* have a one-to-one correspondence with the major targets # The rules sanity-* have a one-to-one correspondence with the major targets
# Each sanity-* rule should have no body to ensure that the post-sanity-* is the # Each sanity-* rule should have no body to ensure that the post-sanity-* is the
......
# Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions
#
#
# Generic makefile for building subdirectories.
#
# SUBDIRS variables to specify the subdirectories to build recursively.
# Makefile has to include Subdirs.gmk AFTER all SUBDIRS variables are
# defined.
#
# This file does not contain any rule.
#
# WARNING: This file is shared with other workspaces.
# So when it includes other files, it must use JDK_TOPDIR.
#
# SUBDIRS subdirs for the base module always get built
# SUBDIRS_<group> subdirs for the named group
#
# By default, subdirs specified in the SUBDIRS and all SUBDIRS_*
# variables will be built.
#
# BUILD_MODULES variable can be used to specify one or more groups
# to be built (BUILD_MODULES=all will build all groups).
#
# Variables of the currently supported groups are:
# SUBDIRS_desktop
# SUBDIRS_management
# SUBDIRS_enterprise
# SUBDIRS_misc
# SUBDIRS_tools
#
# Change to the above list also need to update
# make/common/shared/Sanity.gmk. NOTE: this list is subject
# to change till the JDK 7 SE profiles/modules are finalized.
#
# Eventually we want to restructure the make directory
# according to these grouping (e.g. make/desktop/...) and
# the SUBDIRS_<group> variables would not be needed.
#
# To build the desktop and tools groups only, you can do:
# gnumake BUILD_MODULES="desktop tools" ...
#
# Iterate the subdirectories specified in $1.
# - cd into each subdir and make them
# Given a SUBDIRS* list (first argument), cd into them and make them
# SUBDIRS_MAKEFLAGS Make settings for a subdir make
# SUBDIRS_MAKEFLAGS-$@ Make settings specific to this target
#
define subdirs-group-loop
@$(ECHO) "Begin Processing SUBDIRS: $($1)"
@for i in DUMMY $($1) ; do \
if [ "$$i" != "DUMMY" ] ; then \
$(MAKE) -C $$i $@ $(SUBDIRS_MAKEFLAGS) $(SUBDIRS_MAKEFLAGS-$@) \
FULL_VERSION=$(FULL_VERSION) RELEASE=$(RELEASE) || exit 1; \
fi ; \
done
@$(ECHO) "Done Processing SUBDIRS: $($1)"
endef
# Given a OTHERSUBDIRS list, cd into them and make them (extra loop define)
# OTHERSUBDIRS_MAKEFLAGS Make settings for a subdir make
define OTHERSUBDIRS-loop
@$(ECHO) "Begin Processing OTHERSUBDIRS: $(OTHERSUBDIRS)"
@for i in DUMMY $(OTHERSUBDIRS) ; do \
if [ "$$i" != "DUMMY" ] ; then \
$(MAKE) -C $$i $@ $(OTHERSUBDIRS_MAKEFLAGS) \
FULL_VERSION=$(FULL_VERSION) RELEASE=$(RELEASE) || exit 1; \
fi ; \
done
@$(ECHO) "Done Processing OTHERSUBDIRS: $(OTHERSUBDIRS)"
endef
#
# Iterate the list specified in SUBDIRS_<group> only if
# SUBDIRS_<group> is set and <group> or "all" is specified
# in the BUILD_MODULES variable
#
ifdef SUBDIRS_desktop
ifneq (,$(findstring desktop, $(BUILD_MODULES)))
define subdirs-desktop-loop
@$(call subdirs-group-loop,SUBDIRS_desktop)
endef
else
define subdirs-desktop-loop
endef
endif
else
define subdirs-desktop-loop
endef
endif # SUBDIRS_desktop
ifdef SUBDIRS_enterprise
ifneq (,$(findstring enterprise, $(BUILD_MODULES)))
define subdirs-enterprise-loop
@$(call subdirs-group-loop,SUBDIRS_enterprise)
endef
else
define subdirs-enterprise-loop
endef
endif
else
define subdirs-enterprise-loop
endef
endif # SUBDIRS_enterprise
ifdef SUBDIRS_management
ifneq (,$(findstring management, $(BUILD_MODULES)))
define subdirs-management-loop
@$(call subdirs-group-loop,SUBDIRS_management)
endef
else
define subdirs-management-loop
endef
endif
else
define subdirs-management-loop
endef
endif # SUBDIRS_management
ifdef SUBDIRS_misc
ifneq (,$(findstring misc, $(BUILD_MODULES)))
define subdirs-misc-loop
@$(call subdirs-group-loop,SUBDIRS_misc)
endef
else
define subdirs-misc-loop
endef
endif
else
define subdirs-misc-loop
endef
endif # SUBDIRS_misc
ifdef SUBDIRS_tools
ifneq (,$(findstring tools, $(BUILD_MODULES)))
define subdirs-tools-loop
@$(call subdirs-group-loop,SUBDIRS_tools)
endef
else
define subdirs-tools-loop
endef
endif
else
define subdirs-tools-loop
endef
endif # SUBDIRS_tools
#
# If BUILD_MODULES is not set or it's set to "all",
# iterate all groups.
SUBDIRS_all = $(SUBDIRS) $(SUBDIRS_desktop) $(SUBDIRS_enterprise) \
$(SUBDIRS_management) $(SUBDIRS_misc) $(SUBDIRS_tools)
ifndef BUILD_MODULES
define SUBDIRS-loop
@$(call subdirs-group-loop,SUBDIRS_all)
endef
else
ifneq (,$(findstring all, $(BUILD_MODULES)))
define SUBDIRS-loop
@$(call subdirs-group-loop,SUBDIRS_all)
endef
else # BUILD_MODULES set
#
# Iterate SUBDIRS and the groups specified in BUILD_MODULES
#
define SUBDIRS-loop
@$(call subdirs-group-loop,SUBDIRS)
@$(subdirs-desktop-loop)
@$(subdirs-enterprise-loop)
@$(subdirs-management-loop)
@$(subdirs-misc-loop)
@$(subdirs-tools-loop)
endef
endif
endif # BUILD_MODULES
...@@ -218,7 +218,8 @@ include $(JDK_MAKE_SHARED_DIR)/Sanity-Settings.gmk ...@@ -218,7 +218,8 @@ include $(JDK_MAKE_SHARED_DIR)/Sanity-Settings.gmk
sane-zip_version \ sane-zip_version \
sane-unzip_version \ sane-unzip_version \
sane-msvcrt_path \ sane-msvcrt_path \
sane-freetype sane-freetype \
sane-build_modules
###################################################### ######################################################
# check for COPYRIGHT_YEAR variable # check for COPYRIGHT_YEAR variable
...@@ -844,6 +845,21 @@ else ...@@ -844,6 +845,21 @@ else
sane-freetype: sane-freetype:
endif endif
######################################################
# if specified, BUILD_MODULES must contain valid values.
######################################################
MODULES_REGEX="all|base|desktop|management|enterprise|misc|tools"
sane-build_modules:
ifdef BUILD_MODULES
@for m in $(BUILD_MODULES) ; do \
valid=`$(ECHO) $$m | $(EGREP) $(MODULES_REGEX)`; \
if [ "x$$valid" = "x" ] ; then \
$(ECHO) "ERROR: $$m set in the BUILD_MODULES variable is invalid.\n" \
"" >> $(ERROR_FILE); \
fi \
done
endif
###################################################### ######################################################
# CUPS_HEADERS_PATH must be valid # CUPS_HEADERS_PATH must be valid
###################################################### ######################################################
......
...@@ -38,9 +38,13 @@ SUBDIRS += hpi version jvm redist verify fdlibm java sun_nio jli main zip ...@@ -38,9 +38,13 @@ SUBDIRS += hpi version jvm redist verify fdlibm java sun_nio jli main zip
# Others # Others
# Note: java_crw_demo java_hprof_demo are demos but must be delivered built in sdk # Note: java_crw_demo java_hprof_demo are demos but must be delivered built in sdk
SUBDIRS += security npt java_crw_demo java_hprof_demo \
math awt util text applet net nio dyn \ SUBDIRS += security math util text net nio jar
sql rmi jar beans logging management instrument
SUBDIRS_desktop = awt applet beans
SUBDIRS_management = management
SUBDIRS_misc = npt java_crw_demo java_hprof_demo \
logging instrument dyn sql rmi
ifeq ($(PLATFORM), solaris) ifeq ($(PLATFORM), solaris)
...@@ -53,6 +57,8 @@ ifeq ($(PLATFORM), linux) ...@@ -53,6 +57,8 @@ ifeq ($(PLATFORM), linux)
SUBDIRS += jexec SUBDIRS += jexec
endif # PLATFORM endif # PLATFORM
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -34,6 +34,8 @@ include $(BUILDDIR)/common/Defs.gmk ...@@ -34,6 +34,8 @@ include $(BUILDDIR)/common/Defs.gmk
# Build specified the HPI implementations # Build specified the HPI implementations
# #
SUBDIRS = $(HPIS) SUBDIRS = $(HPIS)
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -218,6 +218,8 @@ ifeq ($(PLATFORM), solaris) ...@@ -218,6 +218,8 @@ ifeq ($(PLATFORM), solaris)
endif endif
SUBDIRS = reflect SUBDIRS = reflect
include $(BUILDDIR)/common/Subdirs.gmk
all build: all build:
$(SUBDIRS-loop) $(SUBDIRS-loop)
clean clobber:: clean clobber::
......
...@@ -49,7 +49,7 @@ Euro_Resources_properties := $(FILES_compiled_properties) ...@@ -49,7 +49,7 @@ Euro_Resources_properties := $(FILES_compiled_properties)
# $(BUILDDIR)/java/text/FILES_java.gmk contains the "sun.text.resources" for # $(BUILDDIR)/java/text/FILES_java.gmk contains the "sun.text.resources" for
# European language support # European language support
include $(BUILDDIR)/java/text/FILES_java.gmk include $(BUILDDIR)/java/text/base/FILES_java.gmk
Euro_Resources_java += $(FILES_java) Euro_Resources_java += $(FILES_java)
......
...@@ -36,6 +36,8 @@ SUBDIRS = java javaw ...@@ -36,6 +36,8 @@ SUBDIRS = java javaw
else else
SUBDIRS = java SUBDIRS = java
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
FILES_src = \ FILES_src = \
java/nio/Bits.java \ java/nio/Bits.java \
java/nio/Buffer.java \ java/nio/Buffer.java \
java/nio/BufferPoolMXBean.java \
java/nio/ByteOrder.java \ java/nio/ByteOrder.java \
java/nio/MappedByteBuffer.java \ java/nio/MappedByteBuffer.java \
java/nio/StringCharBuffer.java \ java/nio/StringCharBuffer.java \
......
...@@ -304,7 +304,11 @@ endif # PLATFORM ...@@ -304,7 +304,11 @@ endif # PLATFORM
# Rules # Rules
# #
SUBDIRS_management = mxbean
include $(BUILDDIR)/common/Subdirs.gmk
build: sources build: sources
$(SUBDIRS-loop)
clean clobber:: clean clobber::
$(RM) -r $(NIO_GEN) $(SNIO_GEN) $(RM) -r $(NIO_GEN) $(SNIO_GEN)
......
#
# Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
BUILDDIR = ../../..
MODULE = management
PACKAGE = java.nio
PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk
FILES_java = java/nio/BufferPoolMXBean.java
include $(BUILDDIR)/common/Classes.gmk
...@@ -62,7 +62,10 @@ CLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing ...@@ -62,7 +62,10 @@ CLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing
# Needed to do file copy # Needed to do file copy
ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR)) ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
SUBDIRS = fonts sajdi SUBDIRS_desktop = fonts
SUBDIRS_tools = sajdi
include $(BUILDDIR)/common/Subdirs.gmk
all clean clobber:: all clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
# #
# Copyright 1996-2006 Sun Microsystems, Inc. All Rights Reserved. # Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -23,86 +23,19 @@ ...@@ -23,86 +23,19 @@
# have any questions. # have any questions.
# #
BUILDDIR = ../..
MODULE = base
PACKAGE = java.text
PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk
#
# Files
#
include FILES_java.gmk
#
# Include
#
include $(BUILDDIR)/common/Classes.gmk
#
# Rules to add data files BreakIterator
# #
TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/java.text/classes # Makefile for building all of java.text
# input
#
# Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
# They are used at JDK build phase in order to create $(BIFILES) which
# are used on runtime instead.
# #
TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources
TEXT_SOURCES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
$(TEXT_SRCDIR)/BreakIteratorInfo.java
UNICODEDATA = $(BUILDDIR)/tools/UnicodeData
# output
TEXT_CLASSDIR = $(CLASSBINDIR)/sun/text/resources
BIFILES = $(TEXT_CLASSDIR)/CharacterBreakIteratorData \
$(TEXT_CLASSDIR)/WordBreakIteratorData \
$(TEXT_CLASSDIR)/LineBreakIteratorData \
$(TEXT_CLASSDIR)/SentenceBreakIteratorData
ICU_FILES = $(TEXT_CLASSDIR)/unorm.icu \
$(TEXT_CLASSDIR)/uprops.icu \
$(TEXT_CLASSDIR)/ubidi.icu
# builder
GENERATEBREAKITERATORDATA_JARFILE = \
$(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
$(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) \
$(UNICODEDATA)/UnicodeData.txt \
$(TEXT_SOURCES)
$(prep-target)
$(RM) -r $(TEXT_CLASSES)
$(MKDIR) -p $(TEXT_CLASSES)
$(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
-sourcepath $(TEXT_SRCDIR) \
$(TEXT_SOURCES)
$(MKDIR) -p $(TEXT_CLASSDIR)
$(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
-jar $(GENERATEBREAKITERATORDATA_JARFILE) \
-o $(TEXT_CLASSDIR) \
-spec $(UNICODEDATA)/UnicodeData.txt
@$(java-vm-cleanup)
build: $(BIFILES) $(ICU_FILES) BUILDDIR = ../..
PRODUCT = sun
# include $(BUILDDIR)/common/Defs.gmk
# Extra rules to copy unorm.icu, uprops.icu, and ubidi.icu
#
$(TEXT_CLASSDIR)/unorm.icu: $(TEXT_SRCDIR)/unorm.icu
$(install-file)
$(TEXT_CLASSDIR)/uprops.icu: $(TEXT_SRCDIR)/uprops.icu SUBDIRS = base
$(install-file) SUBDIRS_desktop = bidi
$(TEXT_CLASSDIR)/ubidi.icu: $(TEXT_SRCDIR)/ubidi.icu include $(BUILDDIR)/common/Subdirs.gmk
$(install-file)
clean clobber:: all build clean clobber::
$(RM) -r $(TEXT_CLASSES) $(SUBDIRS-loop)
$(RM) -r $(BIFILES)
$(RM) $(ICU_FILES)
...@@ -29,7 +29,6 @@ FILES_java = \ ...@@ -29,7 +29,6 @@ FILES_java = \
java/text/AttributedString.java \ java/text/AttributedString.java \
java/text/BreakDictionary.java \ java/text/BreakDictionary.java \
java/text/BreakIterator.java \ java/text/BreakIterator.java \
java/text/Bidi.java \
java/text/CharacterIterator.java \ java/text/CharacterIterator.java \
java/text/CharacterIteratorFieldDelegate.java \ java/text/CharacterIteratorFieldDelegate.java \
java/text/ChoiceFormat.java \ java/text/ChoiceFormat.java \
...@@ -76,10 +75,6 @@ FILES_java = \ ...@@ -76,10 +75,6 @@ FILES_java = \
sun/text/Normalizer.java \ sun/text/Normalizer.java \
sun/text/SupplementaryCharacterData.java \ sun/text/SupplementaryCharacterData.java \
sun/text/UCompactIntArray.java \ sun/text/UCompactIntArray.java \
sun/text/bidi/BidiBase.java \
sun/text/bidi/BidiLine.java \
sun/text/bidi/BidiRun.java \
\
sun/text/normalizer/CharTrie.java \ sun/text/normalizer/CharTrie.java \
sun/text/normalizer/CharacterIteratorWrapper.java \ sun/text/normalizer/CharacterIteratorWrapper.java \
sun/text/normalizer/ICUBinary.java \ sun/text/normalizer/ICUBinary.java \
......
#
# Copyright 1996-2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
BUILDDIR = ../../..
MODULE = base
PACKAGE = java.text
PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk
#
# Files
#
include FILES_java.gmk
#
# Include
#
include $(BUILDDIR)/common/Classes.gmk
#
# Rules to add data files BreakIterator
#
TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/java.text/classes
# input
#
# Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
# They are used at JDK build phase in order to create $(BIFILES) which
# are used on runtime instead.
#
TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources
TEXT_SOURCES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
$(TEXT_SRCDIR)/BreakIteratorInfo.java
UNICODEDATA = $(BUILDDIR)/tools/UnicodeData
# output
TEXT_CLASSDIR = $(CLASSBINDIR)/sun/text/resources
BIFILES = $(TEXT_CLASSDIR)/CharacterBreakIteratorData \
$(TEXT_CLASSDIR)/WordBreakIteratorData \
$(TEXT_CLASSDIR)/LineBreakIteratorData \
$(TEXT_CLASSDIR)/SentenceBreakIteratorData
ICU_FILES = $(TEXT_CLASSDIR)/unorm.icu \
$(TEXT_CLASSDIR)/uprops.icu \
$(TEXT_CLASSDIR)/ubidi.icu
# builder
GENERATEBREAKITERATORDATA_JARFILE = \
$(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
$(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) \
$(UNICODEDATA)/UnicodeData.txt \
$(TEXT_SOURCES)
$(prep-target)
$(RM) -r $(TEXT_CLASSES)
$(MKDIR) -p $(TEXT_CLASSES)
$(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
-sourcepath $(TEXT_SRCDIR) \
$(TEXT_SOURCES)
$(MKDIR) -p $(TEXT_CLASSDIR)
$(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
-jar $(GENERATEBREAKITERATORDATA_JARFILE) \
-o $(TEXT_CLASSDIR) \
-spec $(UNICODEDATA)/UnicodeData.txt
@$(java-vm-cleanup)
build: $(BIFILES) $(ICU_FILES)
#
# Extra rules to copy unorm.icu, uprops.icu, and ubidi.icu
#
$(TEXT_CLASSDIR)/unorm.icu: $(TEXT_SRCDIR)/unorm.icu
$(install-file)
$(TEXT_CLASSDIR)/uprops.icu: $(TEXT_SRCDIR)/uprops.icu
$(install-file)
$(TEXT_CLASSDIR)/ubidi.icu: $(TEXT_SRCDIR)/ubidi.icu
$(install-file)
clean clobber::
$(RM) -r $(TEXT_CLASSES)
$(RM) -r $(BIFILES)
$(RM) $(ICU_FILES)
#
# Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
BUILDDIR = ../../..
PACKAGE = java.text
PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk
#
# Files for Bidi that is not in the base module
#
FILES_java = \
java/text/Bidi.java \
sun/text/bidi/BidiBase.java \
sun/text/bidi/BidiLine.java \
sun/text/bidi/BidiRun.java \
sun/text/CodePointIterator.java
#
# Include
#
include $(BUILDDIR)/common/Classes.gmk
...@@ -30,20 +30,25 @@ ...@@ -30,20 +30,25 @@
BUILDDIR = .. BUILDDIR = ..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
# imageio uses xml, so build it last SUBDIRS = others
SUBDIRS_management = management
SUBDIRS_misc = \
crypto \
sql \
rmi
SUBDIRS = \ # imageio uses xml, so build it last
others \ SUBDIRS_desktop = \
accessibility \ accessibility \
print \ print \
swing \ swing \
crypto \
sound \ sound \
sql \
rmi \
management \
imageio imageio
include $(BUILDDIR)/common/Subdirs.gmk
all build: all build:
$(SUBDIRS-loop) $(SUBDIRS-loop)
clean clobber:: clean clobber::
......
...@@ -31,6 +31,8 @@ BUILDDIR = ../.. ...@@ -31,6 +31,8 @@ BUILDDIR = ../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = ssl SUBDIRS = ssl
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -159,6 +159,7 @@ vpath %.cpp $(PLATFORM_SRC)/native/com/sun/media/sound ...@@ -159,6 +159,7 @@ vpath %.cpp $(PLATFORM_SRC)/native/com/sun/media/sound
# Include rules # Include rules
# #
include $(BUILDDIR)/common/Library.gmk include $(BUILDDIR)/common/Library.gmk
include $(BUILDDIR)/common/Subdirs.gmk
# #
# Rules that copy files. # Rules that copy files.
......
...@@ -40,6 +40,7 @@ AUTO_JAVA_PRUNE = plaf ...@@ -40,6 +40,7 @@ AUTO_JAVA_PRUNE = plaf
SUBDIRS = html32dtd plaf SUBDIRS = html32dtd plaf
include $(BUILDDIR)/common/Classes.gmk include $(BUILDDIR)/common/Classes.gmk
include $(BUILDDIR)/common/Subdirs.gmk
build: other_files build: other_files
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -35,6 +35,7 @@ include $(BUILDDIR)/common/Defs.gmk ...@@ -35,6 +35,7 @@ include $(BUILDDIR)/common/Defs.gmk
# Core. # Core.
# #
SUBDIRS = jdwp back front transport expr tty bdi gui SUBDIRS = jdwp back front transport expr tty bdi gui
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -36,6 +36,8 @@ SUBDIRS = socket ...@@ -36,6 +36,8 @@ SUBDIRS = socket
ifeq ($(PLATFORM), windows) ifeq ($(PLATFORM), windows)
SUBDIRS += shmem SUBDIRS += shmem
endif # PLATFORM endif # PLATFORM
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -31,7 +31,13 @@ BUILDDIR = .. ...@@ -31,7 +31,13 @@ BUILDDIR = ..
PRODUCT = demos PRODUCT = demos
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = applets jfc jvmti management jni scripting jpda SUBDIRS = jni
SUBDIRS_desktop = applets jfc
SUBDIRS_management = management
SUBDIRS_misc = scripting
SUBDIRS_tools = jpda jvmti
include $(BUILDDIR)/common/Subdirs.gmk
all build:: nbproject all build:: nbproject
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -40,6 +40,7 @@ endif ...@@ -40,6 +40,7 @@ endif
SUBDIRS_MAKEFLAGS += DEMO_IS_APPLET=true SUBDIRS_MAKEFLAGS += DEMO_IS_APPLET=true
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -46,6 +46,7 @@ ifndef OPENJDK ...@@ -46,6 +46,7 @@ ifndef OPENJDK
SUBDIRS += Java2D SwingSet2 Stylepad SUBDIRS += Java2D SwingSet2 Stylepad
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -37,6 +37,8 @@ ifeq ($(PLATFORM),solaris) ...@@ -37,6 +37,8 @@ ifeq ($(PLATFORM),solaris)
SUBDIRS += Poller SUBDIRS += Poller
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -48,6 +48,8 @@ SUBDIRS = \ ...@@ -48,6 +48,8 @@ SUBDIRS = \
waiters \ waiters \
hprof hprof
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -38,6 +38,8 @@ SUBDIRS = FullThreadDump \ ...@@ -38,6 +38,8 @@ SUBDIRS = FullThreadDump \
MemoryMonitor \ MemoryMonitor \
JTop JTop
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,7 @@ PRODUCT = demos ...@@ -32,6 +32,7 @@ PRODUCT = demos
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = jconsole-plugin SUBDIRS = jconsole-plugin
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -37,13 +37,18 @@ else ...@@ -37,13 +37,18 @@ else
WEBSERVICES_SUBDIR = webservices WEBSERVICES_SUBDIR = webservices
endif endif
SUBDIRS = nio jmx scripting $(WEBSERVICES_SUBDIR) nbproject SUBDIRS =
SUBDIRS_misc = nio scripting nbproject
SUBDIRS_enterprise = $(WEBSERVICES_SUBDIR)
SUBDIRS_management = jmx
# include dtrace samples in Solaris builds # include dtrace samples in Solaris builds
ifeq ($(PLATFORM), solaris) ifeq ($(PLATFORM), solaris)
SUBDIRS += dtrace SUBDIRS += dtrace
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,8 @@ PRODUCT = java ...@@ -32,6 +32,8 @@ PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = jmx-scandir SUBDIRS = jmx-scandir
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,8 @@ PRODUCT = java ...@@ -32,6 +32,8 @@ PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = file multicast server SUBDIRS = file multicast server
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,8 @@ PRODUCT = java ...@@ -32,6 +32,8 @@ PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = scriptpad SUBDIRS = scriptpad
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,7 @@ PRODUCT = java ...@@ -32,6 +32,7 @@ PRODUCT = java
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = EbayClient EbayServer SUBDIRS = EbayClient EbayServer
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -32,6 +32,7 @@ PRODUCT = org ...@@ -32,6 +32,7 @@ PRODUCT = org
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = ietf jcp SUBDIRS = ietf jcp
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -31,6 +31,8 @@ BUILDDIR = ../.. ...@@ -31,6 +31,8 @@ BUILDDIR = ../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = jgss SUBDIRS = jgss
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -58,13 +58,18 @@ ifdef OPENJDK ...@@ -58,13 +58,18 @@ ifdef OPENJDK
else else
RENDER_SUBDIR = dcpr RENDER_SUBDIR = dcpr
endif endif
# nio need to be compiled before awt to have all charsets ready # nio need to be compiled before awt to have all charsets ready
SUBDIRS = jar security javazic misc jkernel net audio $(RENDER_SUBDIR) image \ SUBDIRS = jar security javazic misc net nio text launcher
nio awt splashscreen $(XAWT_SUBDIR) \ SUBDIRS_desktop = audio $(RENDER_SUBDIR) image \
awt splashscreen $(XAWT_SUBDIR) \
$(HEADLESS_SUBDIR) $(DGA_SUBDIR) \ $(HEADLESS_SUBDIR) $(DGA_SUBDIR) \
font jpeg cmm applet rmi beans $(JDBC_SUBDIR) \ jawt font jpeg cmm applet beans
jawt text launcher management $(ORG_SUBDIR) \ SUBDIRS_management = management
native2ascii serialver tools jconsole tracing SUBDIRS_misc = jkernel $(ORG_SUBDIR) \
rmi $(JDBC_SUBDIR) tracing
SUBDIRS_tools = native2ascii serialver tools jconsole
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -36,6 +36,8 @@ else # !OPENJDK ...@@ -36,6 +36,8 @@ else # !OPENJDK
ICCPROFILE_SRC_DIR = $(CLOSED_SRC)/share/lib/cmm/kcms ICCPROFILE_SRC_DIR = $(CLOSED_SRC)/share/lib/cmm/kcms
endif # OPENJDK endif # OPENJDK
include $(BUILDDIR)/common/Subdirs.gmk
# #
# ICC Profiles used by the CMM. # ICC Profiles used by the CMM.
# #
......
...@@ -43,6 +43,8 @@ ifeq ($(PLATFORM),solaris) ...@@ -43,6 +43,8 @@ ifeq ($(PLATFORM),solaris)
endif endif
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -47,6 +47,8 @@ else ...@@ -47,6 +47,8 @@ else
endif endif
SUBDIRS += jmxremote SUBDIRS += jmxremote
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -29,6 +29,8 @@ PRODUCT = sun ...@@ -29,6 +29,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = others spi SUBDIRS = others spi
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
BUILDDIR = ../../.. BUILDDIR = ../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = nameservice SUBDIRS_misc = nameservice
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -27,6 +27,8 @@ BUILDDIR = ../../../.. ...@@ -27,6 +27,8 @@ BUILDDIR = ../../../..
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = dns SUBDIRS = dns
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -29,6 +29,8 @@ PRODUCT = sun ...@@ -29,6 +29,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = cs SUBDIRS = cs
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -32,6 +32,8 @@ PRODUCT = org ...@@ -32,6 +32,8 @@ PRODUCT = org
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = mozilla SUBDIRS = mozilla
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -32,6 +32,8 @@ PRODUCT = org ...@@ -32,6 +32,8 @@ PRODUCT = org
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = javascript SUBDIRS = javascript
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
...@@ -43,6 +43,8 @@ ifeq ($(PLATFORM), windows) ...@@ -43,6 +43,8 @@ ifeq ($(PLATFORM), windows)
SUBDIRS += cgi SUBDIRS += cgi
endif # PLATFORM endif # PLATFORM
include $(BUILDDIR)/common/Subdirs.gmk
# Then do the rest # Then do the rest
all build clean clobber :: all build clean clobber ::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -67,8 +67,10 @@ ifdef DISABLE_INTREE_EC ...@@ -67,8 +67,10 @@ ifdef DISABLE_INTREE_EC
INTREE_EC = INTREE_EC =
endif endif
SUBDIRS = $(INTREE_EC) other action util tools jgss krb5 smartcardio \ SUBDIRS = $(INTREE_EC) other action util krb5
$(PKCS11) $(JGSS_WRAPPER) $(MSCAPI) SUBDIRS_misc = jgss $(PKCS11) $(JGSS_WRAPPER) $(MSCAPI) smartcardio
SUBDIRS_tools = tools
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
...@@ -33,6 +33,8 @@ PRODUCT = sun ...@@ -33,6 +33,8 @@ PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = dtrace SUBDIRS = dtrace
include $(BUILDDIR)/common/Subdirs.gmk
all build: all build:
$(SUBDIRS-loop) $(SUBDIRS-loop)
clean clobber:: clean clobber::
......
...@@ -56,6 +56,8 @@ ifndef DISABLE_NIMBUS ...@@ -56,6 +56,8 @@ ifndef DISABLE_NIMBUS
SUBDIRS += generate_nimbus SUBDIRS += generate_nimbus
endif endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber:: all build clean clobber::
$(SUBDIRS-loop) $(SUBDIRS-loop)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册