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