Makefile revision 4028
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This code is free software; you can redistribute it and/or modify it
ea206aebcafe1ed5d470dd99daab9a1cedc81c7cMark Andrews# under the terms of the GNU General Public License version 2 only, as
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# published by the Free Software Foundation. Oracle designates this
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# particular file as subject to the "Classpath" exception as provided
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# by Oracle in the LICENSE file that accompanied this code.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This code is distributed in the hope that it will be useful, but WITHOUT
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# version 2 for more details (a copy is included in the LICENSE file that
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# accompanied this code).
f8f37672a57524560fbdde52484e6ae3de1c3354Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You should have received a copy of the GNU General Public License version
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# 2 along with this work; if not, write to the Free Software Foundation,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# or visit www.oracle.com if you need additional information or have any
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# questions.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Makefile for building all of sun tools
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsBUILDDIR = ..
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsPRODUCT = sun
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrewsinclude $(BUILDDIR)/common/Defs.gmk
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Rhino/Mozilla java sources
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark AndrewsORG_EXISTS := $(call DirExists,$(CLOSED_SRC)/share/classes/sun/org,,)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsifneq ("$(ORG_EXISTS)", "")
4038ab55037184d76153afd3c469aa8c85adf85dMark Andrews ORG_SUBDIR = org
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrewsendif
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrews# Non windows subdirs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsifneq ($(PLATFORM), windows)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ifndef OPENJDK
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews ifeq ($(PLATFORM), solaris)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ifneq ($(ARCH), amd64)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews # Solaris 11 does not have support for new compilation of DGA code.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson OS_VERSION = $(shell uname -r)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews OS_MAJOR_VERSION := $(call MajorVersion,$(OS_VERSION))
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews OS_MINOR_VERSION := $(call MinorVersion,$(OS_VERSION))
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ifeq ($(shell $(EXPR) $(OS_MAJOR_VERSION) == 5), 1)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews ifeq ($(shell $(EXPR) $(OS_MINOR_VERSION) \<= 10), 1)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews DGA_SUBDIR = jdga
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson endif
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews endif
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington endif
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews endif
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews endif
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews HEADLESS_SUBDIR = headless
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews XAWT_SUBDIR = xawt
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsendif
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
eaccf5e805405de257b5a4840256c580fefe00e3Mark Andrewsifndef OPENJDK
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews JDBC_SUBDIR = jdbc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsendif
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsifdef OPENJDK
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews RENDER_SUBDIR = pisces
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonelse
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson RENDER_SUBDIR = dcpr
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonendif
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# nio need to be compiled before awt to have all charsets ready
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonSUBDIRS = jar security javazic misc net nio text launcher
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifdef BUILD_HEADLESS_ONLY
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson DISPLAY_LIBS = awt $(HEADLESS_SUBDIR)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson DISPLAY_TOOLS =
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonelse
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson DISPLAY_LIBS = awt splashscreen $(XAWT_SUBDIR) $(HEADLESS_SUBDIR)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson DISPLAY_TOOLS = applet
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonendif
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonSUBDIRS_desktop = audio $(RENDER_SUBDIR) image \
c25080dc50542213058c240226c9f342186e6285Mark Andrews $(DISPLAY_LIBS) $(DGA_SUBDIR) \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews jawt font jpeg cmm $(DISPLAY_TOOLS) beans
413988c8166976498250c0ebb2e3a645d0366bd3Mark AndrewsSUBDIRS_management = management
0756445a735e2df39bf798d8de42ae5dd030aa3bMark AndrewsSUBDIRS_misc = $(ORG_SUBDIR) rmi $(JDBC_SUBDIR) tracing
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark AndrewsSUBDIRS_tools = native2ascii serialver tools jconsole
c25080dc50542213058c240226c9f342186e6285Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsifndef OPENJDK
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews SUBDIRS += usagetracker
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsendif
c25080dc50542213058c240226c9f342186e6285Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsinclude $(BUILDDIR)/common/Subdirs.gmk
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsall build clean clobber::
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(SUBDIRS-loop)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews