Makefile revision 2848
393N/A#
393N/A# Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
393N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
393N/A#
393N/A# This code is free software; you can redistribute it and/or modify it
393N/A# under the terms of the GNU General Public License version 2 only, as
393N/A# published by the Free Software Foundation. Oracle designates this
393N/A# particular file as subject to the "Classpath" exception as provided
393N/A# by Oracle in the LICENSE file that accompanied this code.
393N/A#
393N/A# This code is distributed in the hope that it will be useful, but WITHOUT
393N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
393N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
393N/A# version 2 for more details (a copy is included in the LICENSE file that
393N/A# accompanied this code).
393N/A#
393N/A# You should have received a copy of the GNU General Public License version
393N/A# 2 along with this work; if not, write to the Free Software Foundation,
393N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
393N/A#
393N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
393N/A# or visit www.oracle.com if you need additional information or have any
393N/A# questions.
393N/A#
393N/A
395N/A#
393N/A# Makefile for building the generic version of medialib
393N/A#
393N/A
618N/ABUILDDIR = ../../..
393N/AMODULE = media
393N/APACKAGE = sun.awt.medialib
393N/ALIBRARY = mlib_image
393N/APRODUCT = sun
393N/A
393N/A# Use highest level of optimization on this library
393N/AOPTIMIZATION_LEVEL = HIGHEST
393N/A
393N/Ainclude $(BUILDDIR)/common/Defs.gmk
393N/A
393N/A#
393N/A# Use mapfile
393N/A#
393N/AFILES_m = mapfile-vers
393N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
393N/A
393N/A#
393N/A# Files
393N/A#
include FILES_c.gmk
#
# Rules
#
include $(BUILDDIR)/common/Library.gmk
#
# set compile options for solaris 32- or 64-bit build
#
ifeq ($(ARCH_DATA_MODEL), 64)
CFLAGS += -DMLIB_OS64BIT
endif # ARCH_DATA_MODEL
ifneq ($(PLATFORM), sparc)
OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH
endif
CPPFLAGS += \
-I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib
OTHER_CFLAGS += -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES
ifneq ($(PLATFORM), windows)
OTHER_LDLIBS = $(LIBM) -ldl
endif