Makefile revision 3643
1a932f2eab9b00d713acc4205d96ca2485bf2712Quaker Fang# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# This code is free software; you can redistribute it and/or modify it
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# under the terms of the GNU General Public License version 2 only, as
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# published by the Free Software Foundation. Oracle designates this
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# particular file as subject to the "Classpath" exception as provided
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# by Oracle in the LICENSE file that accompanied this code.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# This code is distributed in the hope that it will be useful, but WITHOUT
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# version 2 for more details (a copy is included in the LICENSE file that
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# accompanied this code).
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# You should have received a copy of the GNU General Public License version
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# 2 along with this work; if not, write to the Free Software Foundation,
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# or visit www.oracle.com if you need additional information or have any
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# questions.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Makefile for building all of font tools
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Indicate we want the C++ compiler to do the linking.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Use higher optimization level
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Created without -z defs on linux
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf LDLIBS += user32.lib gdi32.lib $(OBJDIR)/../../../sun.awt/awt/$(OBJDIRNAME)/awt.lib
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azfelse # PLATFORM unix
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#In the non-OpenJDK mode we need to build T2K
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#make sure freetype dll will be available at runtime as well as link time
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#NB: Default freetype build system uses -h linker option and
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# result .so contains hardcoded library name that is later
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# used for adding dependencies to other objects
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# It is not obvious how to extract that hardcoded name (libfreetype.so.6)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# without overcomplicating logic here.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# To workaround this we hardcode .6 suffix for now.
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# Note that .so.6 library will not be found by System.loadLibrary()
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# but fortunately we need to load FreeType library explicitly
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf# on windows only
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf#TODO: rework this to avoid hardcoding library name in the makefile
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf FREETYPE_LIB = $(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX)
40db2e2b777b79f3dd0d6d9629593a07f86b9c0azf FREETYPE_LIB = $(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX).6
$(FREETYPE_LIB):