Makefile revision 2080
#
# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
BUILDDIR = ../..
#
# Files
#
LDFLAGS += -L$(OPENWIN_LIB)
# Since this library will be living in a subdirectory below the other libraries
# we need to add an extra runpath so that libraries in the upper directory
# are found at runtime.
LD_RUNPATH_EXTRAS = ..
#
# Rules.
#
#
# Add to the ambient vpath to pick up files in subdirectories
#
CPPFLAGS += -I$(CUPS_HEADERS_PATH)
# Allows for builds on Debian GNU Linux, X11 is in a different place
-I$(OPENWIN_HOME)/include
#
# Generation of wrappers
#
# On sparcv9 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
# On sparcv9 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
else
# On amd64 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
# On amd64 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
else # !sparcv9 : includes (32-bit) sparc, i586
SIZERS_C = $(SIZER_32_C)
endif # amd64
endif # sparcv9
else # !solaris
SIZERS_C = $(SIZER_32_C)
else # !32
SIZERS_C = $(SIZER_64_C)
endif # 32
endif # solaris
# XXX Hack for 6185483 - use hard-coded sizes.
# Add the 64-bit platforms that need to be included into 32-bit build
# and have sizes.64-$(PLATFORM)-$(LIBARCH) hardcoded in the workspace
# If you define DOHACK=true for some combination of $(PLATFORM)-$(LIBARCH),
# make sure you have sizes.64-$(PLATFORM)-$(LIBARCH) pre-generated in
DOHACK=true
endif # Hack
DOCOMPARE=true
# 64 bit sizers are generated on platform-libarch (left) for use
# on platform-libarch (right) and stored under the latter name.
# Do compare manually stored and automatically generated pair(s)
# if DOCOMPARE=true, just after the generation.
$(MKDIR) -p $(WRAPPER_GENERATOR_TEMPDIR)
$(CP) $(PREDEFINED_SIZES_TMPL) $@; \
$(CHMOD) +w $@;\
else \
$(ECHO) GENERATING $@; \
fi
fi
$(RM) -r $(WRAPPER_GENERATOR_TEMPDIR)
$(RM) -r $(WRAPPER_GENERATOR_DIR)
else
ICONS = \
ICONS += \
$(BOOT_JAVAC_CMD) -d $(TEMPDIR_CLASSES) $<
$(RM) $$classname; \
$(CAT) $$i | \
-Djava.awt.headless=true \
sun.awt.X11.ToBin >> $$classname; \
$(RM) $$classname; \
$(CAT) $$i | \
-Djava.awt.headless=true \
sun.awt.X11.ToBin >> $$classname; \
done
$(TOUCH) $@