Makefile revision 4766
1924N/A#
1924N/A# Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
1924N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1924N/A#
1924N/A# This code is free software; you can redistribute it and/or modify it
1924N/A# under the terms of the GNU General Public License version 2 only, as
1924N/A# published by the Free Software Foundation. Oracle designates this
1924N/A# particular file as subject to the "Classpath" exception as provided
1924N/A# by Oracle in the LICENSE file that accompanied this code.
1924N/A#
1924N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1924N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1924N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1924N/A# version 2 for more details (a copy is included in the LICENSE file that
1924N/A# accompanied this code).
1924N/A#
1924N/A# You should have received a copy of the GNU General Public License version
1924N/A# 2 along with this work; if not, write to the Free Software Foundation,
1924N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1924N/A#
1924N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1924N/A# or visit www.oracle.com if you need additional information or have any
1924N/A# questions.
1924N/A#
4134N/A
1924N/A#
1924N/A# Makefile for fdlibm
1924N/A#
1924N/A# Note:
1924N/A# The fdlibm libraries are built using special rules in Library.gmk.
4134N/A#
1924N/A
4134N/ABUILDDIR = ../..
4134N/ALIBRARY = fdlibm
4134N/APRODUCT = java
4134N/A
4134N/Ainclude $(BUILDDIR)/common/Defs.gmk
4134N/A
4134N/A#
1924N/A# Where is fdlibm in the source tree?
1924N/A#
1924N/AFDLIBM_SRC = $(SHARE_SRC)/native/java/lang/fdlibm
4209N/A
1924N/A# Windows: compiler flags
1924N/Aifeq ($(PLATFORM),windows)
1924N/A # Turn all optimizations off
1924N/A OPTIMIZATION_LEVEL = NONE
1924N/A FASTDEBUG_OPTIMIZATION_LEVEL = NONE
1924N/A OTHER_CFLAGS =
1924N/A CPPFLAGS_DBG += -DLOGGING
4134N/Aendif
4134N/A
4134N/A#
4134N/A# Linux: Disable optimization to get correctly reproducible
1924N/A# floating-point results.
4134N/A#
4134N/Aifeq ($(PLATFORM),linux)
4134N/A # Turn all optimizations off
1924N/A OPTIMIZATION_LEVEL = NONE
1924N/A FASTDEBUG_OPTIMIZATION_LEVEL = NONE
1924N/Aendif
1924N/A
1924N/Aifeq ($(PLATFORM),macosx)
1924N/A # Turn all optimizations off
1924N/A OPTIMIZATION_LEVEL = NONE
1924N/A FASTDEBUG_OPTIMIZATION_LEVEL = NONE
1924N/Aendif
1924N/A
1924N/A#
4134N/A# Include path.
1924N/A#
1924N/AOTHER_INCLUDES = -I$(FDLIBM_SRC)/include
4134N/A
4134N/A#
4209N/A# Things that must be linked in.
4209N/A#
4134N/AOTHER_LDLIBS =
1924N/A
1924N/A#
1924N/A# Files to compile.
1924N/A#
1924N/Ainclude FILES_c.gmk
1924N/A
1924N/A#
1924N/A# Rules for the .a file.
1924N/A#
1924N/Ainclude $(BUILDDIR)/common/Library.gmk
1924N/A
1924N/A#
1924N/A# Find fdlibm source files.
4134N/A#
4134N/Avpath %.c
4134N/Avpath %.c $(FDLIBM_SRC)/src
4134N/A