Makefile revision 301
4ab6b0edcbd091d1b599ca7ba42b80f56116f245rbb# Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# This code is free software; you can redistribute it and/or modify it
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# under the terms of the GNU General Public License version 2 only, as
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# published by the Free Software Foundation. Sun designates this
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# particular file as subject to the "Classpath" exception as provided
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# by Sun in the LICENSE file that accompanied this code.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# This code is distributed in the hope that it will be useful, but WITHOUT
4ab6b0edcbd091d1b599ca7ba42b80f56116f245rbb# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4ab6b0edcbd091d1b599ca7ba42b80f56116f245rbb# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# version 2 for more details (a copy is included in the LICENSE file that
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# accompanied this code).
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# You should have received a copy of the GNU General Public License version
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# 2 along with this work; if not, write to the Free Software Foundation,
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# CA 95054 USA or visit www.sun.com if you need additional information or
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb# have any questions.
f6a6245816cd866361da8c576b1f47c7a54b6610fanf# Makefile for building all of font tools
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# Indicate we want the C++ compiler to do the linking.
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# Created without -z defs on linux
75960f20f88dad6bc67892c711c429946063d133stoddard# Use higher optimization level
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard # Files built here do not compile with warning level 3 if warnings are fatal
56ca30c968906053ae61acb218420667bb58d996rbb LDLIBS += user32.lib gdi32.lib $(OBJDIR)/../../../sun.awt/awt/$(OBJDIRNAME)/awt.lib
0bff2f28ef945280c17099c142126178a78e1e54manojelse # PLATFORM unix
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#In the non-OpenJDK mode we need to build T2K
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#make sure freetype dll will be available at runtime as well as link time
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj#NB: Default freetype build system uses -h linker option and
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj# result .so contains hardcoded library name that is later
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj# used for adding dependencies to other objects
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# It is not obvious how to extract that hardcoded name (libfreetype.so.6)
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# without overcomplicating logic here.
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# To workaround this we hardcode .6 suffix for now.
df4a7c143b27b489dd2d865bb3f6668c8420b3a9fanf# Note that .so.6 library will not be found by System.loadLibrary()
df4a7c143b27b489dd2d865bb3f6668c8420b3a9fanf# but fortunately we need to load FreeType library explicitly
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein# on windows only
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein#TODO: rework this to avoid hardcoding library name in the makefile
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgsteinlibrary:: $(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX)
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein$(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX):
18e4b2bda5bee4cc6452075bdb5514ea78e5840ftrawick $(CP) $(FREETYPE_LIB_PATH)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX) $@
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(CP) $(FREETYPE_LIB_PATH)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX) $@.6
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#ifeq ($(PLATFORM), solaris)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# FILES_reorder += reorder-$(ARCH)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Add to the ambient vpath to pick up files in subdirectories
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Fontmanager is headless (independent of X/Motif)
f6a6245816cd866361da8c576b1f47c7a54b6610fanf CPPFLAGS += -I$(FREETYPE_HEADERS_PATH) -I$(FREETYPE_HEADERS_PATH)/freetype2
d6b3cb141f0667101c1bca883ad15b383402c93bfieldingelse # PLATFORM
d6b3cb141f0667101c1bca883ad15b383402c93bfielding# Libraries to link, and other C flags.
670734c2ee137c587411795c6f82566c9d3729b7coar # Note that on Solaris, fontmanager is built against the headless library.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj OTHER_LDLIBS += -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt -lc $(LIBM) $(LIBCXX)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojelse # PLATFORM is linux
d6b3cb141f0667101c1bca883ad15b383402c93bfielding# set up compile flags..