Makefile revision 970
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# This code is free software; you can redistribute it and/or modify it
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# under the terms of the GNU General Public License version 2 only, as
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# published by the Free Software Foundation. Sun designates this
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# particular file as subject to the "Classpath" exception as provided
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# by Sun in the LICENSE file that accompanied this code.
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence#
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# This code is distributed in the hope that it will be useful, but WITHOUT
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# version 2 for more details (a copy is included in the LICENSE file that
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# accompanied this code).
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence#
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# You should have received a copy of the GNU General Public License version
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# 2 along with this work; if not, write to the Free Software Foundation,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# CA 95054 USA or visit www.sun.com if you need additional information or
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# have any questions.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# WARNING: Make sure the OPENJDK plugs are up-to-date, see make/common/internal/BinaryPlugs.gmk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Makefile for building t2k rasteriser.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyBUILDDIR = ../../..
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyPACKAGE = sun.font
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyLIBRARY = t2k
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyPRODUCT = sun
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Indicate we want the C++ compiler to do the linking.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCPLUSPLUSLIBRARY=true
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Part of the sun.font package, but doesn't rebuild classes (except
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# for a few ones with native methods) so shouldn't clobber them.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyDONT_CLOBBER_CLASSES=true
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Use higher optimization level
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyOPTIMIZATION_LEVEL = HIGHER
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude $(BUILDDIR)/common/Defs.gmk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Files
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude FILES_c.gmk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyFILES_export = \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley java/awt/Font.java \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley sun/font/FileFont.java \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley sun/font/FontManager.java \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley sun/font/GlyphList.java \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley sun/font/NativeFont.java \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley sun/font/StrikeCache.java \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley sun/font/T2KFontScaler.java
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyifeq ($(PLATFORM), windows)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # t2k imports several shared methods from fontmanager.dll
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley LDLIBS += user32.lib $(OBJDIR)/../../../sun.font/fontmanager/$(OBJDIRNAME)/fontmanager.lib
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_CFLAGS += -DCC_NOEX
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_CXXFLAGS += -DCC_NOEX
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyendif # PLATFORM
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# In the OpenJDK mode we are not building anything
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyifndef OPENJDK
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude $(BUILDDIR)/common/Mapfile-vers.gmk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyinclude $(BUILDDIR)/common/Library.gmk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyendif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Add to the ambient vpath to pick up files in subdirectories
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(SHARE_SRC)/share/native/$(PKGDIR)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k/ttHints
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.cpp $(CLOSED_SRC)/share/native/$(PKGDIR)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Libraries to link, and other C flags.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# setup the list of libraries to link in...
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyifneq ($(PLATFORM), windows)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_LDLIBS += $(LIBM) $(LIBCXX) -lfontmanager
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ifeq ($(PLATFORM), linux)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ifeq ("$(CC_VER_MAJOR)", "3")
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ifeq ($(PLATFORM), solaris)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_LDLIBS += -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyendif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# set up compile flags..
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas GustafssonCPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR) \
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson -I$(CLOSED_SRC)/share/native/$(PKGDIR)/t2k \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I$(CLOSED_SRC)/share/native/$(PKGDIR) \
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff -I$(SHARE_SRC)/share/native/$(PKGDIR) \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I$(PLATFORM_SRC)/native/$(PKGDIR) \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence -I$(SHARE_SRC)/native/sun/java2d/loops \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I$(SHARE_SRC)/native/sun/java2d/pipe \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I$(PLATFORM_SRC)/native/sun/java2d \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I$(SHARE_SRC)/native/sun/java2d \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -I$(TEMPDIR)/../fontmanager/CClassHeaders
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley