Makefile revision 970
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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# 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# 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# 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# WARNING: Make sure the OPENJDK plugs are up-to-date, see make/common/internal/BinaryPlugs.gmk
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Makefile for building t2k rasteriser.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Indicate we want the C++ compiler to do the linking.
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 Halley# Use higher optimization level
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # t2k imports several shared methods from fontmanager.dll
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley LDLIBS += user32.lib $(OBJDIR)/../../../sun.font/fontmanager/$(OBJDIRNAME)/fontmanager.lib
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# In the OpenJDK mode we are not building anything
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Add to the ambient vpath to pick up files in subdirectories
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyvpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k/ttHints
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Libraries to link, and other C flags.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# setup the list of libraries to link in...
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley OTHER_LDLIBS += -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# set up compile flags..
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas GustafssonCPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR) \