annotate make/lib/Lib-jdk.jdi.gmk @ 49071:d7859531621b

8198751: Refactor SetupNativeCompilation to take NAME and TYPE Reviewed-by: tbell
author ihse
date Wed, 28 Feb 2018 21:16:11 +0100
parents 72e3ae9a25eb
children 995a5556edfa
rev   line source
chegar@25859 1 #
ihse@49071 2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
chegar@25859 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@25859 4 #
chegar@25859 5 # This code is free software; you can redistribute it and/or modify it
chegar@25859 6 # under the terms of the GNU General Public License version 2 only, as
chegar@25859 7 # published by the Free Software Foundation. Oracle designates this
chegar@25859 8 # particular file as subject to the "Classpath" exception as provided
chegar@25859 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@25859 10 #
chegar@25859 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@25859 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@25859 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@25859 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@25859 15 # accompanied this code).
chegar@25859 16 #
chegar@25859 17 # You should have received a copy of the GNU General Public License version
chegar@25859 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@25859 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@25859 20 #
chegar@25859 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@25859 22 # or visit www.oracle.com if you need additional information or have any
chegar@25859 23 # questions.
chegar@25859 24 #
chegar@25859 25
chegar@25859 26 include LibCommon.gmk
chegar@25859 27
chegar@25859 28 ################################################################################
chegar@25859 29
chegar@25859 30 ifeq ($(OPENJDK_TARGET_OS), windows)
chegar@25859 31
erikj@47217 32 LIBDT_SHMEM_SRC := $(TOPDIR)/src/jdk.jdi/share/native/libdt_shmem \
erikj@47217 33 $(TOPDIR)/src/jdk.jdi/$(OPENJDK_TARGET_OS_TYPE)/native/libdt_shmem \
chegar@25859 34 #
chegar@25859 35 LIBDT_SHMEM_CPPFLAGS := -I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \
chegar@25859 36 $(addprefix -I, $(LIBDT_SHMEM_SRC)) \
erikj@47217 37 -I$(TOPDIR)/src/jdk.jdwp.agent/share/native/libjdwp/export \
erikj@47217 38 -I$(TOPDIR)/src/jdk.jdwp.agent/share/native/include \
chegar@27565 39 -I$(SUPPORT_OUTPUTDIR)/headers/jdk.jdi \
chegar@25859 40 #
chegar@25859 41
ihse@49071 42 $(eval $(call SetupNativeCompilation, BUILD_LIBDT_SHMEM, \
ihse@49071 43 NAME := dt_shmem, \
chegar@25859 44 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
chegar@25859 45 SRC := $(LIBDT_SHMEM_SRC), \
chegar@25859 46 OPTIMIZATION := LOW, \
ihse@31069 47 CFLAGS := $(CFLAGS_JDKLIB) -DUSE_MMAP \
chegar@25859 48 $(LIBDT_SHMEM_CPPFLAGS), \
chegar@25859 49 LDFLAGS := $(LDFLAGS_JDKLIB), \
erikj@36134 50 LDFLAGS_windows := -export:jdwpTransport_OnLoad, \
ihse@33406 51 LIBS := $(JDKLIB_LIBS), \
chegar@25859 52 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
chegar@25859 53 RC_FLAGS := $(RC_FLAGS) \
chegar@25859 54 -D "JDK_FNAME=dt_shmem.dll" \
chegar@25859 55 -D "JDK_INTERNAL_NAME=dt_shmem" \
chegar@25859 56 -D "JDK_FTYPE=0x2L", \
chegar@27565 57 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libdt_shmem, \
ihse@35276 58 ))
chegar@25859 59
chegar@27565 60 TARGETS += $(BUILD_LIBDT_SHMEM)
chegar@25859 61
chegar@25859 62 endif # OPENJDK_TARGET_OS
chegar@25859 63
chegar@25859 64 ################################################################################