Makefile revision 0
93N/A#
93N/A# Copyright 1998-2005 Sun Microsystems, Inc. All Rights Reserved.
93N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
93N/A#
93N/A# This code is free software; you can redistribute it and/or modify it
93N/A# under the terms of the GNU General Public License version 2 only, as
93N/A# published by the Free Software Foundation. Sun designates this
93N/A# particular file as subject to the "Classpath" exception as provided
93N/A# by Sun in the LICENSE file that accompanied this code.
93N/A#
93N/A# This code is distributed in the hope that it will be useful, but WITHOUT
93N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
93N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
93N/A# version 2 for more details (a copy is included in the LICENSE file that
93N/A# accompanied this code).
93N/A#
93N/A# You should have received a copy of the GNU General Public License version
93N/A# 2 along with this work; if not, write to the Free Software Foundation,
93N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
93N/A#
93N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
93N/A# CA 95054 USA or visit www.sun.com if you need additional information or
5491N/A# have any questions.
93N/A#
5680N/A
93N/A#
3817N/A# Makefile for native threads HPI.
93N/A#
93N/A# Note:
5491N/A# The fdlibm libraries are built using special rules in Library.gmk.
618N/A#
5491N/A
844N/ABUILDDIR = ../..
5491N/ALIBRARY = fdlibm
2289N/APRODUCT = java
93N/Ainclude $(BUILDDIR)/common/Defs.gmk
5491N/A
3271N/A#
5680N/A# Where is fdlibm in the source tree?
5680N/A#
5680N/AFDLIBM_SRC = $(SHARE_SRC)/native/java/lang/fdlibm
5680N/A
5680N/A# windows compiler flags
93N/Aifeq ($(PLATFORM),windows)
93N/A # Turn all optimizations off
99N/A _OPT = $(CC_NO_OPT)
93N/A OTHER_CFLAGS =
5680N/A CPPFLAGS_DBG += -DLOGGING
93N/A # Files built here do not compile with warning level 3 if warnings are fatal
2289N/A COMPILER_WARNINGS_FATAL=false
2289N/Aendif
5680N/A
285N/A#
5680N/A# Include path.
93N/A#
93N/AOTHER_INCLUDES = -I$(FDLIBM_SRC)/include
93N/A
93N/A#
285N/A# Things that must be linked in.
93N/A#
5680N/AOTHER_LDLIBS =
2289N/A
93N/A#
93N/A# Files to compile.
5680N/A#
93N/Ainclude FILES_c.gmk
93N/A
93N/A#
93N/A# Rules for the .a file.
93N/A#
2289N/Ainclude $(BUILDDIR)/common/Library.gmk
93N/A
93N/A#
93N/A# Disable optimization to get correctly reproducible
93N/A# floating-point results.
93N/A#
93N/Aifeq ($(PLATFORM),linux)
93N/A # Turn all optimizations off
894N/A _OPT = $(CC_NO_OPT)
93N/Aendif
93N/A
894N/A#
93N/A# Find fdlibm source files.
2289N/A#
2289N/Avpath %.c
2289N/Avpath %.c $(FDLIBM_SRC)/src
2289N/A