Makefile revision 4632
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# This code is free software; you can redistribute it and/or modify it
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# under the terms of the GNU General Public License version 2 only, as
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# published by the Free Software Foundation. Oracle designates this
15a44745412679c30a6d022733925af70a38b715David Lawrence# particular file as subject to the "Classpath" exception as provided
15a44745412679c30a6d022733925af70a38b715David Lawrence# by Oracle in the LICENSE file that accompanied this code.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# This code is distributed in the hope that it will be useful, but WITHOUT
15a44745412679c30a6d022733925af70a38b715David Lawrence# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15a44745412679c30a6d022733925af70a38b715David Lawrence# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15a44745412679c30a6d022733925af70a38b715David Lawrence# version 2 for more details (a copy is included in the LICENSE file that
15a44745412679c30a6d022733925af70a38b715David Lawrence# accompanied this code).
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# You should have received a copy of the GNU General Public License version
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# 2 along with this work; if not, write to the Free Software Foundation,
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# or visit www.oracle.com if you need additional information or have any
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# questions.
6b7257f756eb0530cdf54df9a7fab8d51a5001c3David Lawrence#
6b7257f756eb0530cdf54df9a7fab8d51a5001c3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Makefile for building the VIS (solaris-only) version of medialib
ce2be9b7211ab5bacaa10fe74ef35def3a3f6089David Lawrence#
ce2be9b7211ab5bacaa10fe74ef35def3a3f6089David LawrenceBUILDDIR = ../../..
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrencePACKAGE = sun.awt.medialib
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceLIBRARY = mlib_image_v
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrencePRODUCT = sun
f96b41064bcd427d8125a096fd646c1f068d8ed7David Lawrence
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# Tell Defs.gmk we need VIS instructions
f96b41064bcd427d8125a096fd646c1f068d8ed7David LawrenceVIS_NEEDED=true
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Select highest level of optimization for this library
3db78e0855a8dfc162180880cd70d9c1a03d9301David LawrenceOPTIMIZATION_LEVEL = HIGHEST
091ea9e38dd72ee1fbc7159f8fe263d9f8e35d71Andreas Gustafsson
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrenceinclude $(BUILDDIR)/common/Defs.gmk
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Use generic mapfile
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
dbb33bdc762a897844661e013823672c03af67fcDavid LawrenceFILES_m = ../generic/mapfile-vers
87983da955bf63128de85d180359bdc418516c3cDavid Lawrenceinclude $(BUILDDIR)/common/Mapfile-vers.gmk
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence#
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence# Files
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceinclude FILES_c.gmk
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Rules
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
b2e6eb8cea7c491667c97fb46ad04149a86195a4Mark Andrewsinclude $(BUILDDIR)/common/Library.gmk
b2e6eb8cea7c491667c97fb46ad04149a86195a4Mark Andrews
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencevpath %.s $(PLATFORM_SRC)/native/sun/awt/medialib
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencevpath %.c $(SHARE_SRC)/native/sun/awt/medialib
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence#
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence# set compile options for solaris 32- or 64-bit build
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence#
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceASFLAGS += -P
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceCFLAGS_sparcv9 = -DMLIB_OS64BIT
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceINLINE = $(PLATFORM_SRC)/native/sun/awt/medialib/vis_$(ARCH_DATA_MODEL).il
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceCFLAGS += $(CFLAGS_$(ARCH)) $(INLINE) -I$(PLATFORM_SRC)/native/sun/awt/medialib -I$(SHARE_SRC)/native/sun/awt/medialib
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceOTHER_CFLAGS += -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES
30a4d5b0c23eb7a73d9635a98250560437a42d59David LawrenceOTHER_LDLIBS = $(LIBM) $(LIBDL)
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence