#
# @(#)GNUmakefile	1.2 98/03/10
#
# Makefile for building the VIS (solaris-only) version of medialib
#
BUILDDIR = ../../..
include $(BUILDDIR)/Platform.gmk
PACKAGE = sun.awt.medialib
LIBRARY = mlib_image_v
PRODUCT = sun
include $(BUILDDIR)/makefiles/Defs.gmk

#
# Files
#
include $(MINCLUDES)sun_image_v.cmk

#
# Rules
#
include $(BUILDDIR)/makefiles/Library.gmk

ifneq ($(CC_VERSION), gcc)
  INLINE = $(PLATFORM_SRC)/native/sun/awt/medialib/vis.il
    _OPT = -fast -xO4 -xdepend -xrestrict 
    CFLAGS += -xarch=v8plusa -xchip=ultra 
else
    _OPT = -O3 
endif

CFLAGS += $(INLINE) -I$(PLATFORM_SRC)/native/sun/awt/medialib 

OTHER_LDLIBS = -lm -ldl

#
# Has been converted to the JNI: generate JNI-style header files
#
JAVAHFLAGS += -jni
