Makefile revision 6323
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# This code is free software; you can redistribute it and/or modify it
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# under the terms of the GNU General Public License version 2 only, as
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# published by the Free Software Foundation. Oracle designates this
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# particular file as subject to the "Classpath" exception as provided
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# by Oracle in the LICENSE file that accompanied this code.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# This code is distributed in the hope that it will be useful, but WITHOUT
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# version 2 for more details (a copy is included in the LICENSE file that
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# accompanied this code).
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# You should have received a copy of the GNU General Public License version
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# 2 along with this work; if not, write to the Free Software Foundation,
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# or visit www.oracle.com if you need additional information or have any
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCLASSES_INIT += $(TEMPDIR)/.gen.wrappers touch.wrappers
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# For Xrender extension.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserLDFLAGS += -L/usr/openwin/sfw/lib$(ISA_DIR) -R/usr/openwin/sfw/lib$(ISA_DIR)
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Since this library will be living in a subdirectory below the other libraries
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# we need to add an extra runpath so that libraries in the upper directory
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# are found at runtime.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Add to the ambient vpath to pick up files in subdirectories
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(SHARE_SRC)/native/sunawt/alphacomposite
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(SHARE_SRC)/native/sun/awt/image/gif
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(SHARE_SRC)/native/sun/awt/image/cvutils
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(SHARE_SRC)/native/sun/java2d/loops
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(SHARE_SRC)/native/sun/awt/medialib
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(PLATFORM_SRC)/native/sun/awt/robot_child
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(SHARE_SRC)/native/sun/java2d/opengl
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(PLATFORM_SRC)/native/sun/java2d/opengl
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox Uservpath %.c $(PLATFORM_SRC)/native/sun/java2d/x11
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserOTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) \
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi
# have a render.h file that suggests gradients are supported, but
# the Xrender.h doesn't have the corresponding type definitions.
# Whilst in the C preprocessor we can tell if the render.h define's are set
# A grep of Xrender.h is the only way to know this. If they are absent
# On sparcv9 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
# On amd64 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
DOHACK=true
DOCOMPARE=true
$(CHMOD) +w $@;\