Makefile revision 894
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
17d67aeb3722c094c6493a3e9a9d0cdfb9453ecdvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# This code is free software; you can redistribute it and/or modify it
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# under the terms of the GNU General Public License version 2 only, as
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# published by the Free Software Foundation. Sun designates this
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# particular file as subject to the "Classpath" exception as provided
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# by Sun in the LICENSE file that accompanied this code.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# version 2 for more details (a copy is included in the LICENSE file that
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# accompanied this code).
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You should have received a copy of the GNU General Public License version
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# 2 along with this work; if not, write to the Free Software Foundation,
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CA 95054 USA or visit www.sun.com if you need additional information or
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# have any questions.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Makefile for native threads HPI.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Note:
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The fdlibm libraries are built using special rules in Library.gmk.
cb172d105a87f41489b1553fbd99ec97932609ffvboxsync#
cb172d105a87f41489b1553fbd99ec97932609ffvboxsync
cb172d105a87f41489b1553fbd99ec97932609ffvboxsyncBUILDDIR = ../..
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncLIBRARY = fdlibm
d85f5fb26ce3bbbcb8029e48b62f9d550c0317bfvboxsyncPRODUCT = java
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude $(BUILDDIR)/common/Defs.gmk
2c691730ab202620fe427110841aa4e0075b7ccavboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Where is fdlibm in the source tree?
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncFDLIBM_SRC = $(SHARE_SRC)/native/java/lang/fdlibm
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Windows: compiler flags
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(PLATFORM),windows)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync # Turn all optimizations off
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync OPTIMIZATION_LEVEL = NONE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync OTHER_CFLAGS =
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync CPPFLAGS_DBG += -DLOGGING
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Linux: Disable optimization to get correctly reproducible
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# floating-point results.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(PLATFORM),linux)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync # Turn all optimizations off
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync OPTIMIZATION_LEVEL = NONE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
3baadeafd9922582dad9b32431362e6296417dd8vboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Include path.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
0a987c833e0517dc4efefc14229d96dec62e0965vboxsyncOTHER_INCLUDES = -I$(FDLIBM_SRC)/include
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
cb172d105a87f41489b1553fbd99ec97932609ffvboxsync# Things that must be linked in.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncOTHER_LDLIBS =
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Files to compile.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude FILES_c.gmk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Rules for the .a file.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude $(BUILDDIR)/common/Library.gmk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Find fdlibm source files.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
c679f5c447cd6925763c50493cd83bd9aa032d17vboxsyncvpath %.c
3baadeafd9922582dad9b32431362e6296417dd8vboxsyncvpath %.c $(FDLIBM_SRC)/src
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync