annotate jdk/make/lib/Lib-jdk.jdi.gmk @ 25859:3317bb8137f4

8054834: Modular Source Code Reviewed-by: alanb, chegar, ihse, mduigou Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com
author chegar
date Sun, 17 Aug 2014 15:54:13 +0100
parents
children 8c9bd4be4a86 729f9700483a
rev   line source
chegar@25859 1 #
chegar@25859 2 # Copyright (c) 2011, 2014, 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
chegar@25859 32 LIBDT_SHMEM_SRC := $(JDK_TOPDIR)/src/jdk.jdi/share/native/libdt_shmem \
chegar@25859 33 $(JDK_TOPDIR)/src/jdk.jdi/$(OPENJDK_TARGET_OS_API_DIR)/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)) \
chegar@25859 37 -I$(JDK_TOPDIR)/src/jdk.jdwp.agent/share/native/libjdwp/export \
chegar@25859 38 -I$(JDK_TOPDIR)/src/jdk.jdwp.agent/share/native/include \
chegar@25859 39 -I$(JDK_OUTPUTDIR)/gensrc_headers/jdk.jdi \
chegar@25859 40 #
chegar@25859 41
chegar@25859 42 $(eval $(call SetupNativeCompilation,BUILD_LIBDT_SHMEM, \
chegar@25859 43 LIBRARY := dt_shmem, \
chegar@25859 44 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
chegar@25859 45 SRC := $(LIBDT_SHMEM_SRC), \
chegar@25859 46 LANG := C, \
chegar@25859 47 OPTIMIZATION := LOW, \
chegar@25859 48 CFLAGS := $(CFLAGS_JDKLIB) $(CFLAGS_WARNINGS_ARE_ERRORS) -DUSE_MMAP \
chegar@25859 49 $(LIBDT_SHMEM_CPPFLAGS), \
chegar@25859 50 LDFLAGS := $(LDFLAGS_JDKLIB), \
chegar@25859 51 LDFLAGS_windows := -export:jdwpTransport_OnLoad, \
chegar@25859 52 LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \
chegar@25859 53 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
chegar@25859 54 RC_FLAGS := $(RC_FLAGS) \
chegar@25859 55 -D "JDK_FNAME=dt_shmem.dll" \
chegar@25859 56 -D "JDK_INTERNAL_NAME=dt_shmem" \
chegar@25859 57 -D "JDK_FTYPE=0x2L", \
chegar@25859 58 OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libdt_shmem, \
chegar@25859 59 DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
chegar@25859 60
chegar@25859 61 JDI_TRANSPORT_LIBRARIES += $(BUILD_LIBDT_SHMEM)
chegar@25859 62
chegar@25859 63 endif # OPENJDK_TARGET_OS
chegar@25859 64
chegar@25859 65 ################################################################################
chegar@25859 66
chegar@25859 67 jdk.jdi: $(JDI_TRANSPORT_LIBRARIES)
chegar@25859 68
chegar@25859 69 all: jdk.jdi
chegar@25859 70
chegar@25859 71 .PHONY: all jdk.jdi