annotate make/sun/font/t2k/Makefile @ 422:c51121419e30

6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles Reviewed-by: tbell
author ohair
date Sun, 27 Jul 2008 18:42:57 -0700
parents 37a05a11f281
children a418b563ed63
rev   line source
duke@0 1 #
duke@0 2 # Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation. Sun designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
duke@0 9 # by Sun in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
duke@0 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 23 # have any questions.
duke@0 24 #
duke@0 25
duke@0 26 # WARNING: Make sure the OPENJDK plugs are up-to-date, see make/common/internal/BinaryPlugs.gmk
duke@0 27
duke@0 28 #
duke@0 29 # Makefile for building t2k rasteriser.
duke@0 30 #
duke@0 31
duke@0 32 BUILDDIR = ../../..
duke@0 33 PACKAGE = sun.font
duke@0 34 LIBRARY = t2k
duke@0 35 PRODUCT = sun
duke@0 36
duke@0 37 # Indicate we want the C++ compiler to do the linking.
duke@0 38 CPLUSPLUSLIBRARY=true
duke@0 39
duke@0 40 # Part of the sun.font package, but doesn't rebuild classes (except
duke@0 41 # for a few ones with native methods) so shouldn't clobber them.
duke@0 42 DONT_CLOBBER_CLASSES=true
duke@0 43
duke@0 44 include $(BUILDDIR)/common/Defs.gmk
duke@0 45
duke@0 46 #
duke@0 47 # Use higher optimization level
duke@0 48 #
duke@0 49 _OPT = $(CC_HIGHER_OPT)
duke@0 50
duke@0 51 #
duke@0 52 # Files
duke@0 53 #
duke@0 54 include FILES_c.gmk
duke@0 55
duke@0 56 FILES_export = \
duke@0 57 java/awt/Font.java \
duke@0 58 sun/font/FileFont.java \
duke@0 59 sun/font/FontManager.java \
duke@0 60 sun/font/GlyphList.java \
duke@0 61 sun/font/NativeFont.java \
duke@0 62 sun/font/StrikeCache.java \
duke@0 63 sun/font/T2KFontScaler.java
duke@0 64
duke@0 65 ifeq ($(PLATFORM), windows)
duke@0 66
duke@0 67 # t2k imports several shared methods from fontmanager.dll
duke@0 68 LDLIBS += user32.lib $(OBJDIR)/../../../sun.font/fontmanager/$(OBJDIRNAME)/fontmanager.lib
duke@0 69
duke@0 70 OTHER_CFLAGS += -DCC_NOEX
duke@0 71 OTHER_CXXFLAGS += -DCC_NOEX
duke@0 72
duke@0 73 endif # PLATFORM
duke@0 74
duke@0 75 #
duke@0 76 # In the OpenJDK mode we are not building anything
duke@0 77 #
duke@0 78 ifndef OPENJDK
duke@0 79 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 80 include $(BUILDDIR)/common/Library.gmk
duke@0 81 endif
duke@0 82
duke@0 83 #
duke@0 84 # Add to the ambient vpath to pick up files in subdirectories
duke@0 85 #
duke@0 86 vpath %.c $(SHARE_SRC)/share/native/$(PKGDIR)
duke@0 87 vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)
duke@0 88 vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)
duke@0 89 vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k
duke@0 90 vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k/ttHints
duke@0 91
duke@0 92 vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)
duke@0 93 vpath %.cpp $(CLOSED_SRC)/share/native/$(PKGDIR)
duke@0 94
duke@0 95 # Libraries to link, and other C flags.
duke@0 96 #
duke@0 97 # setup the list of libraries to link in...
duke@0 98 ifneq ($(PLATFORM), windows)
duke@0 99 OTHER_LDLIBS += $(LIBM) $(LIBCXX) -lfontmanager
duke@0 100 ifeq ($(PLATFORM), linux)
duke@0 101 ifeq ("$(CC_VER_MAJOR)", "3")
duke@0 102 OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
duke@0 103 endif
duke@0 104 else
duke@0 105 ifeq ($(PLATFORM), solaris)
duke@0 106 OTHER_LDLIBS += -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
duke@0 107 endif
duke@0 108 endif
duke@0 109 endif
duke@0 110
duke@0 111
duke@0 112 # set up compile flags..
duke@0 113
duke@0 114 CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR) \
duke@0 115 -I$(CLOSED_SRC)/share/native/$(PKGDIR)/t2k \
duke@0 116 -I$(CLOSED_SRC)/share/native/$(PKGDIR) \
duke@0 117 -I$(SHARE_SRC)/share/native/$(PKGDIR) \
duke@0 118 -I$(PLATFORM_SRC)/native/$(PKGDIR) \
duke@0 119 -I$(SHARE_SRC)/native/sun/java2d/loops \
duke@0 120 -I$(SHARE_SRC)/native/sun/java2d/pipe \
duke@0 121 -I$(PLATFORM_SRC)/native/sun/java2d \
duke@0 122 -I$(SHARE_SRC)/native/sun/java2d \
duke@0 123 -I$(TEMPDIR)/../fontmanager/CClassHeaders