Makefile revision 0
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# Copyright 1998-2005 Sun Microsystems, Inc. All Rights Reserved.
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater#
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# This code is free software; you can redistribute it and/or modify it
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater# under the terms of the GNU General Public License version 2 only, as
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews# published by the Free Software Foundation. Sun designates this
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# particular file as subject to the "Classpath" exception as provided
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# by Sun in the LICENSE file that accompanied this code.
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater#
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# This code is distributed in the hope that it will be useful, but WITHOUT
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# version 2 for more details (a copy is included in the LICENSE file that
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# accompanied this code).
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# You should have received a copy of the GNU General Public License version
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# 2 along with this work; if not, write to the Free Software Foundation,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CA 95054 USA or visit www.sun.com if you need additional information or
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# have any questions.
7eda3642eea03f1181e41540c7c8791a57759383Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Makefile for building the VIS (solaris-only) version of medialib
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsBUILDDIR = ../../..
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPACKAGE = sun.awt.medialib
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLIBRARY = mlib_image_v
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsPRODUCT = sun
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Tell Defs.gmk we need VIS instructions
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsVIS_NEEDED=true
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic Updater
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic Updaterinclude $(BUILDDIR)/common/Defs.gmk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
bbb069be941f649228760edcc241122933c066d2Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Select highest level of optimization for this library
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater#
9d330c054e02f52cefd8dc0e71550b0fe07e077eAutomatic Updater_OPT = $(CC_HIGHEST_OPT)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use generic mapfile
c0b771f68361b073388b85a689c12cbe502880eeAutomatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsFILES_m = ../generic/mapfile-vers
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(BUILDDIR)/common/Mapfile-vers.gmk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Files
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude FILES_c.gmk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Rules
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude $(BUILDDIR)/common/Library.gmk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updatervpath %.s $(PLATFORM_SRC)/native/sun/awt/medialib
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updatervpath %.c $(SHARE_SRC)/native/sun/awt/medialib
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater#
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater# set compile options for solaris 32- or 64-bit build
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontASFLAGS += -P
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCFLAGS_sparcv9 = -DMLIB_OS64BIT
2a31bd531072824ef252c18303859d6af7451b00Francis DupontINLINE = $(PLATFORM_SRC)/native/sun/awt/medialib/vis_$(ARCH_DATA_MODEL).il
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += $(CFLAGS_$(ARCH)) $(INLINE) -I$(PLATFORM_SRC)/native/sun/awt/medialib -I$(SHARE_SRC)/native/sun/awt/medialib
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterOTHER_CFLAGS += -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsOTHER_LDLIBS = $(LIBM) -ldl
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater