Makefile revision 4956
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# This code is free software; you can redistribute it and/or modify it
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# under the terms of the GNU General Public License version 2 only, as
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# published by the Free Software Foundation. Oracle designates this
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# particular file as subject to the "Classpath" exception as provided
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# by Oracle in the LICENSE file that accompanied this code.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# version 2 for more details (a copy is included in the LICENSE file that
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# accompanied this code).
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# You should have received a copy of the GNU General Public License version
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# 2 along with this work; if not, write to the Free Software Foundation,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# or visit www.oracle.com if you need additional information or have any
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# questions.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Makefile for building the JDI back-end implementation
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncLIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS=1
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncBUILDDIR = ../../..
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncLIBRARY = dt_socket
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncPRODUCT = jbug
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Mapfile only used on Solaris/Linux
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncFILES_m = mapfile-vers
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncinclude $(BUILDDIR)/common/Defs.gmk
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncifeq ($(PLATFORM), linux)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync OTHER_LDLIBS += $(LIBNSL) $(LIBSOCKET) -lpthread
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncendif
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncifeq ($(PLATFORM), macosx))
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync LIBSOCKET =
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync OTHER_LDLIBS += -pthread
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncendif
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncifeq ($(PLATFORM), solaris)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync OTHER_LDLIBS += $(LIBNSL) $(LIBSOCKET)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncendif
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncifeq ($(PLATFORM), windows)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync OTHER_LDLIBS += ws2_32.lib
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncendif
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncOTHER_INCLUDES = -I$(INCLUDEDIR) -I$(PLATFORM_INCLUDE) \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync -I$(SHARE_SRC)/transport/export \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync -I$(SHARE_SRC)/transport/socket \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync -I$(PLATFORM_SRC)/transport/socket \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync -I$(SHARE_SRC)/back/export \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync -I$(PLATFORM_SRC)/back
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Files to compile.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncFILES_c = \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync socketTransport.c \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync socket_md.c
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Use the mapfile-vers (See the mapfile located with this Makefile)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncifdef FILES_m
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync include $(BUILDDIR)/common/Mapfile-vers.gmk
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncendif
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Rules.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncinclude $(BUILDDIR)/common/Library.gmk
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# We don't want to link against -ljava
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncJAVALIB=
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Add -export options to explicitly spell exported symbols
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncifeq ($(PLATFORM), windows)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync OTHER_LCF += -export:jdwpTransport_OnLoad
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncendif
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Add to ambient vpath so we pick up the library files
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncvpath %.c $(SHARE_SRC)/transport/socket:$(PLATFORM_SRC)/transport/socket
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync