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