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