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