Makefile revision 4956
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This code is free software; you can redistribute it and/or modify it
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# under the terms of the GNU General Public License version 2 only, as
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# published by the Free Software Foundation. Oracle designates this
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# particular file as subject to the "Classpath" exception as provided
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# by Oracle in the LICENSE file that accompanied this code.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This code is distributed in the hope that it will be useful, but WITHOUT
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# version 2 for more details (a copy is included in the LICENSE file that
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# accompanied this code).
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You should have received a copy of the GNU General Public License version
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# 2 along with this work; if not, write to the Free Software Foundation,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or visit www.oracle.com if you need additional information or have any
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# questions.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS=1
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterBUILDDIR = ../..
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# It's currently used by jpda and hprof. Put it in base module for now.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLIBRARY = npt
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterPRODUCT = sun
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLIBRARY_OUTPUT = npt
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Configure the CFLAGS for this library.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterFILES_m = mapfile-vers
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(BUILDDIR)/common/Defs.gmk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterSRCDIR=$(SHARE_SRC)/npt
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterPSRCDIR=$(PLATFORM_SRC)/npt
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use the mapfile-vers (See the mapfile located with this Makefile)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifdef FILES_m
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(BUILDDIR)/common/Mapfile-vers.gmk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
#
# Files to compile.
#
FILES_c = \
npt.c \
utf.c \
utf_md.c
OTHER_INCLUDES = -I$(SRCDIR) -I$(PSRCDIR)
#
# Library to compile.
#
include $(BUILDDIR)/common/Library.gmk
# We don't want to link against -ljava
JAVALIB=
# Add -export options to explicitly spell exported symbols
ifeq ($(PLATFORM), windows)
OTHER_LCF += -export:nptInitialize -export:nptTerminate
endif
# Add location of iconv header
ifeq ($(PLATFORM), macosx))
OTHER_LDLIBS += -liconv
endif
#
# Add to ambient vpath so we pick up the library files
#
vpath %.c $(SRCDIR):$(PSRCDIR)