Makefile revision 4028
4491N/A#
4491N/A# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
4491N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4491N/A#
4491N/A# This code is free software; you can redistribute it and/or modify it
4491N/A# under the terms of the GNU General Public License version 2 only, as
4491N/A# published by the Free Software Foundation. Oracle designates this
4491N/A# particular file as subject to the "Classpath" exception as provided
4491N/A# by Oracle in the LICENSE file that accompanied this code.
4491N/A#
4491N/A# This code is distributed in the hope that it will be useful, but WITHOUT
4491N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4491N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4491N/A# version 2 for more details (a copy is included in the LICENSE file that
4491N/A# accompanied this code).
4491N/A#
4491N/A# You should have received a copy of the GNU General Public License version
4491N/A# 2 along with this work; if not, write to the Free Software Foundation,
4491N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4491N/A#
4491N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4491N/A# or visit www.oracle.com if you need additional information or have any
4491N/A# questions.
1627N/A#
1627N/A
1627N/A#
0N/A# Makefile for building all of sun tools
0N/A#
0N/A
0N/ABUILDDIR = ..
0N/APRODUCT = sun
0N/Ainclude $(BUILDDIR)/common/Defs.gmk
0N/A
0N/A# Rhino/Mozilla java sources
0N/AORG_EXISTS := $(call DirExists,$(CLOSED_SRC)/share/classes/sun/org,,)
0N/Aifneq ("$(ORG_EXISTS)", "")
0N/A ORG_SUBDIR = org
0N/Aendif
0N/A
0N/A# Non windows subdirs
0N/Aifneq ($(PLATFORM), windows)
0N/A ifndef OPENJDK
0N/A ifeq ($(PLATFORM), solaris)
0N/A ifneq ($(ARCH), amd64)
0N/A # Solaris 11 does not have support for new compilation of DGA code.
0N/A OS_VERSION = $(shell uname -r)
0N/A OS_MAJOR_VERSION := $(call MajorVersion,$(OS_VERSION))
0N/A OS_MINOR_VERSION := $(call MinorVersion,$(OS_VERSION))
0N/A ifeq ($(shell $(EXPR) $(OS_MAJOR_VERSION) == 5), 1)
0N/A ifeq ($(shell $(EXPR) $(OS_MINOR_VERSION) \<= 10), 1)
0N/A DGA_SUBDIR = jdga
0N/A endif
0N/A endif
0N/A endif
0N/A endif
0N/A endif
0N/A HEADLESS_SUBDIR = headless
0N/A XAWT_SUBDIR = xawt
0N/Aendif
0N/A
0N/Aifndef OPENJDK
JDBC_SUBDIR = jdbc
endif
ifdef OPENJDK
RENDER_SUBDIR = pisces
else
RENDER_SUBDIR = dcpr
endif
# nio need to be compiled before awt to have all charsets ready
SUBDIRS = jar security javazic misc net nio text launcher
ifdef BUILD_HEADLESS_ONLY
DISPLAY_LIBS = awt $(HEADLESS_SUBDIR)
DISPLAY_TOOLS =
else
DISPLAY_LIBS = awt splashscreen $(XAWT_SUBDIR) $(HEADLESS_SUBDIR)
DISPLAY_TOOLS = applet
endif
SUBDIRS_desktop = audio $(RENDER_SUBDIR) image \
$(DISPLAY_LIBS) $(DGA_SUBDIR) \
jawt font jpeg cmm $(DISPLAY_TOOLS) beans
SUBDIRS_management = management
SUBDIRS_misc = $(ORG_SUBDIR) rmi $(JDBC_SUBDIR) tracing
SUBDIRS_tools = native2ascii serialver tools jconsole
ifndef OPENJDK
SUBDIRS += usagetracker
endif
include $(BUILDDIR)/common/Subdirs.gmk
all build clean clobber::
$(SUBDIRS-loop)