jdk/make/lib/ServiceabilityLibraries.gmk
author sspitsyn
Fri, 17 Jan 2014 02:13:40 -0800
changeset 22519 924605caa9a8
parent 21805 c7d7946239de
child 22598 ad765acfda85
child 22336 a5de9b85e983
permissions -rw-r--r--
8030027: nsk/jvmti/scenarios/hotswap/HS101/hs101t006 Crashed the vm on Linux-amd64: SIGSEGV in JavaThread::last_java_vframe(RegisterMap*)+0xfa Summary: Add a safe guard to VMOp_GetCurrentLocation against non-walkable stack of target thread exiting from Java execution Reviewed-by: mgronlun, dholmes, sla, dcubed Contributed-by: serguei.spitsyn@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
16476
e269be167fae 8001334: Remove use of JVM_* functions from java.io code
dxu
parents: 15676
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    26
LIBATTACH_EXCLUDE_FILES :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    27
ifneq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    28
  LIBATTACH_EXCLUDE_FILES += SolarisVirtualMachine.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    29
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    30
ifneq ($(OPENJDK_TARGET_OS), linux)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    31
  LIBATTACH_EXCLUDE_FILES += LinuxVirtualMachine.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    32
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    33
ifneq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    34
  LIBATTACH_EXCLUDE_FILES += BsdVirtualMachine.c
17673
33e311ad099a 8012629: java.lang.UnsatisfiedLinkError exception throw by getAllFonts() on MacOSX
jchen
parents: 17448
diff changeset
    35
endif
33e311ad099a 8012629: java.lang.UnsatisfiedLinkError exception throw by getAllFonts() on MacOSX
jchen
parents: 17448
diff changeset
    36
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    37
$(eval $(call SetupNativeCompilation,BUILD_LIBATTACH, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    38
    LIBRARY := attach, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    39
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    40
    SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tools/attach, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    41
    EXCLUDE_FILES := $(LIBATTACH_EXCLUDE_FILES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    42
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    43
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    44
    CFLAGS := $(CFLAGS_JDKLIB), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    45
    CFLAGS_windows := /Gy, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
    46
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libattach/mapfile-$(OPENJDK_TARGET_OS), \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    47
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    48
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    49
        -D "JDK_FNAME=attach.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    50
        -D "JDK_INTERNAL_NAME=attach" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    51
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    52
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    53
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    54
    LDFLAGS_solaris := -ldoor, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
    55
    LDFLAGS_windows := /ORDER:@$(JDK_TOPDIR)/make/mapfiles/libattach/reorder-windows-$(OPENJDK_TARGET_CPU), \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    56
    LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    57
    LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib psapi.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    58
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libattach, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    59
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    60
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    61
$(BUILD_LIBATTACH): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    62
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    63
BUILD_LIBRARIES += $(BUILD_LIBATTACH)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    64
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    65
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    66
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    67
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SOCKET, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    68
    LIBRARY := dt_socket, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    69
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    70
    SRC := $(JDK_TOPDIR)/src/share/transport/socket \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    71
        $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    72
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    73
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    74
    CFLAGS := $(CFLAGS_JDKLIB) -DUSE_MMAP \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    75
        -I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    76
        -I$(JDK_TOPDIR)/src/share/transport/socket \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    77
        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    78
        -I$(JDK_TOPDIR)/src/share/back/export \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    79
        -I$(JDK_TOPDIR)/src/share/back, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
    80
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libdt_socket/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    81
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    82
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    83
    LDFLAGS_SUFFIX_linux := -lpthread, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    84
    LDFLAGS_SUFFIX_solaris := -lnsl -lsocket -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    85
    LDFLAGS_SUFFIX_windows := $(LDFLAGS_JDKLIB_SUFFIX) -export:jdwpTransport_OnLoad ws2_32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    86
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    87
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    88
        -D "JDK_FNAME=dt_socket.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    89
        -D "JDK_INTERNAL_NAME=dt_socket" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    90
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    91
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libdt_socket, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    92
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    93
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    94
$(BUILD_LIBDT_SOCKET): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    95
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    96
BUILD_LIBRARIES += $(BUILD_LIBDT_SOCKET)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    97
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    98
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    99
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   100
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   101
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   102
  $(eval $(call SetupNativeCompilation,BUILD_LIBDT_SHMEM, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   103
      LIBRARY := dt_shmem, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   104
      OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   105
      SRC := $(JDK_TOPDIR)/src/share/native/com/sun/tools/jdi \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   106
          $(JDK_TOPDIR)/src/share/transport/shmem \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   107
          $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   108
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   109
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   110
      CFLAGS := $(CFLAGS_JDKLIB) -DUSE_MMAP \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   111
          -I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   112
          -I$(JDK_TOPDIR)/src/share/transport/shmem \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   113
          -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   114
          -I$(JDK_TOPDIR)/src/share/back/export, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   115
      LDFLAGS := $(LDFLAGS_JDKLIB), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   116
      LDFLAGS_windows := -export:jdwpTransport_OnLoad, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   117
      LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   118
      VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   119
      RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   120
          -D "JDK_FNAME=dt_shmem.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   121
          -D "JDK_INTERNAL_NAME=dt_shmem" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   122
          -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   123
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libdt_shmem, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   124
      DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   125
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   126
  BUILD_LIBRARIES += $(BUILD_LIBDT_SHMEM)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   127
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   128
endif # OPENJDK_TARGET_OS
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   129
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   130
##########################################################################################
20890
9d7cc1b4291b 8025715: Split CompileNativeLibraries.gmk
ihse
parents: 20547
diff changeset
   131
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   132
# JDWP_LOGGING causes log messages to be compiled into the library.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   133
$(eval $(call SetupNativeCompilation,BUILD_LIBJDWP, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   134
    LIBRARY := jdwp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   135
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   136
    SRC := $(JDK_TOPDIR)/src/share/back $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   137
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   138
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   139
    CFLAGS := $(CFLAGS_JDKLIB) -DJDWP_LOGGING \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   140
        -I$(JDK_TOPDIR)/src/share/transport/export \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   141
        -I$(JDK_TOPDIR)/src/share/back/export \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   142
        -I$(JDK_TOPDIR)/src/share/npt \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   143
        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   144
        -I$(JDK_TOPDIR)/src/share/back \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   145
        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   146
        -I$(JDK_OUTPUTDIR)/gensrc_jdwp_headers, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   147
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjdwp/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   148
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   149
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   150
    LDFLAGS_SUFFIX_linux := $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   151
    LDFLAGS_SUFFIX_solaris := $(LIBDL) -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   152
    LDFLAGS_SUFFIX_windows := $(LDFLAGS_JDKLIB_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   153
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   154
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   155
        -D "JDK_FNAME=jdwp.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   156
        -D "JDK_INTERNAL_NAME=jdwp" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   157
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   158
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjdwp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   159
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   160
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   161
$(BUILD_LIBJDWP): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   162
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   163
BUILD_LIBRARIES += $(BUILD_LIBJDWP)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   164
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   165
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   166
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   167
$(eval $(call SetupNativeCompilation,BUILD_LIBJSDT, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   168
    LIBRARY := jsdt, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   169
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   170
    SRC := $(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   171
        $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tracing/dtrace, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   172
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   173
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   174
    CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   175
        -I$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   176
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjsdt/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   177
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   178
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   179
    LDFLAGS_SUFFIX_linux := $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   180
    LDFLAGS_SUFFIX_windows := $(LDFLAGS_JDKLIB_SUFFIX) $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   181
    LDFLAGS_SUFFIX_macosx := $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   182
    LDFLAGS_SUFFIX_solaris := -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   183
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   184
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   185
        -D "JDK_FNAME=jsdt.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   186
        -D "JDK_INTERNAL_NAME=jsdt" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   187
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   188
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjsdt, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   189
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   190
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   191
$(BUILD_LIBJSDT): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   192
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   193
BUILD_LIBRARIES += $(BUILD_LIBJSDT)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   194
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   195
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   196
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   197
LIBINSTRUMENT_SRC := $(JDK_TOPDIR)/src/share/instrument \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   198
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   199
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   200
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   201
LIBINSTRUMENT_FILES := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   202
    EncodingSupport.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   203
    EncodingSupport_md.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   204
    FileSystemSupport_md.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   205
    InstrumentationImplNativeMethods.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   206
    InvocationAdapter.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   207
    JarFacade.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   208
    JPLISAgent.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   209
    JPLISAssert.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   210
    JavaExceptions.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   211
    PathCharsValidator.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   212
    Reentrancy.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   213
    Utilities.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   214
    canonicalize_md.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   215
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   216
LIBINSTRUMENT_DIR := $(JDK_OUTPUTDIR)/objs/libinstrument
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   217
LIBINSTRUMENT_CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   218
    -I$(JDK_TOPDIR)/src/share/instrument \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   219
    -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   220
    -I$(JDK_TOPDIR)/src/share/bin
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   221
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   222
LIBINSTRUMENT_LDFLAGS :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   223
LIBINSTRUMENT_LDFLAGS_SUFFIX :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   224
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   225
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   226
  LIBINSTRUMENT_LDFLAGS += $(JDK_OUTPUTDIR)/objs/jli_static.lib $(WIN_JAVA_LIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   227
      -export:Agent_OnAttach advapi32.lib
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   228
  # Statically link the C runtime so that there are not dependencies on modules
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   229
  # not on the search patch when invoked from the Windows system directory
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   230
  # (or elsewhere).
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   231
  LIBINSTRUMENT_CFLAGS := $(filter-out -MD, $(LIBINSTRUMENT_CFLAGS))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   232
  # equivalent of strcasecmp is stricmp on Windows
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   233
  LIBINSTRUMENT_CFLAGS += -Dstrcasecmp=stricmp
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   234
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   235
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   236
$(eval $(call SetupNativeCompilation,BUILD_LIBINSTRUMENT, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   237
    LIBRARY := instrument, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   238
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   239
    SRC := $(LIBINSTRUMENT_SRC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   240
    INCLUDE_FILES := $(LIBINSTRUMENT_FILES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   241
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   242
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   243
    CFLAGS := $(LIBINSTRUMENT_CFLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   244
    CFLAGS_debug := -DJPLIS_LOGGING, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   245
    CFLAGS_release := -DNO_JPLIS_LOGGING, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   246
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libinstrument/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   247
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   248
        $(call SET_SHARED_LIBRARY_ORIGIN) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   249
        $(LIBINSTRUMENT_LDFLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   250
    LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/jli), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   251
    LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/jli), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   252
    LDFLAGS_macosx := -Xlinker -all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   253
        -framework Cocoa -framework Security -framework ApplicationServices, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   254
    LDFLAGS_SUFFIX := $(LIBINSTRUMENT_LDFLAGS_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   255
    LDFLAGS_SUFFIX_macosx := -liconv $(LIBZ), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   256
    LDFLAGS_SUFFIX_solaris := $(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL) -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   257
    LDFLAGS_SUFFIX_linux := $(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   258
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   259
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   260
        -D "JDK_FNAME=instrument.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   261
        -D "JDK_INTERNAL_NAME=instrument" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   262
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   263
    OBJECT_DIR := $(LIBINSTRUMENT_DIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   264
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   265
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   266
ifneq (, $(findstring $(OPENJDK_TARGET_OS), macosx windows))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   267
  $(BUILD_LIBINSTRUMENT): $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)jli_static$(STATIC_LIBRARY_SUFFIX)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   268
else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   269
  $(BUILD_LIBINSTRUMENT): $(INSTALL_LIBRARIES_HERE)/jli/$(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   270
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   271
$(BUILD_LIBINSTRUMENT): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   272
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   273
BUILD_LIBRARIES += $(BUILD_LIBINSTRUMENT)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   274
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   275
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   276
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   277
BUILD_LIBMANAGEMENT_SRC := $(JDK_TOPDIR)/src/share/native/sun/management \
21633
6cc4c9a56216 8025985: com.sun.management.OSMBeanFactory should not be public
mchung
parents: 20896
diff changeset
   278
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/management
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   279
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   280
BUILD_LIBMANAGEMENT_EXCLUDES :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   281
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   282
BUILD_LIBMANAGEMENT_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/management
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   283
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   284
ifneq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   285
  BUILD_LIBMANAGEMENT_EXCLUDES += SolarisOperatingSystem.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   286
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   287
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   288
ifneq ($(OPENJDK_TARGET_OS), linux)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   289
  BUILD_LIBMANAGEMENT_EXCLUDES += LinuxOperatingSystem.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   290
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   291
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   292
ifneq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   293
  BUILD_LIBMANAGEMENT_EXCLUDES += MacosxOperatingSystem.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   294
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   295
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   296
LIBMANAGEMENT_OPTIMIZATION := HIGH
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   297
ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   298
  ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   299
    LIBMANAGEMENT_OPTIMIZATION := LOW
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   300
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   301
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   302
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   303
$(eval $(call SetupNativeCompilation,BUILD_LIBMANAGEMENT, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   304
    LIBRARY := management, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   305
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   306
    SRC := $(BUILD_LIBMANAGEMENT_SRC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   307
    EXCLUDE_FILES := $(BUILD_LIBMANAGEMENT_EXCLUDES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   308
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   309
    OPTIMIZATION := $(LIBMANAGEMENT_OPTIMIZATION), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   310
    CFLAGS := $(CFLAGS_JDKLIB) $(BUILD_LIBMANAGEMENT_CFLAGS), \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   311
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libmanagement/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   312
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   313
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   314
    LDFLAGS_solaris := -lkstat, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   315
    LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   316
    LDFLAGS_SUFFIX_windows := jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   317
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   318
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   319
        -D "JDK_FNAME=management.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   320
        -D "JDK_INTERNAL_NAME=management" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   321
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   322
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libmanagement, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   323
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   324
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   325
$(BUILD_LIBMANAGEMENT): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   326
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   327
BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   328
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   329
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   330
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   331
BUILD_LIBHPROF_SRC := $(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   332
BUILD_LIBHPROF_CFLAGS := -I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   333
    -I$(JDK_TOPDIR)/src/share/npt \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   334
    -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   335
    -I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   336
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   337
BUILD_LIBHPROF_LDFLAGS :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   338
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   339
LIBHPROF_OPTIMIZATION := HIGHEST
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   340
ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   341
  ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   342
    LIBHPROF_OPTIMIZATION := LOW
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   343
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   344
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   345
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   346
$(eval $(call SetupNativeCompilation,BUILD_LIBHPROF, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   347
    LIBRARY := hprof, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   348
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   349
    SRC := $(BUILD_LIBHPROF_SRC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   350
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   351
    OPTIMIZATION := $(LIBHPROF_OPTIMIZATION), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   352
    CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   353
        $(BUILD_LIBHPROF_CFLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   354
    CFLAGS_debug := -DHPROF_LOGGING, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   355
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libhprof/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   356
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   357
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   358
    LDFLAGS_windows := wsock32.lib winmm.lib advapi32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   359
    LDFLAGS_SUFFIX_linux := $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   360
    LDFLAGS_SUFFIX_macosx := $(LIBDL), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   361
    LDFLAGS_SUFFIX_solaris := -lsocket -lnsl $(LIBDL) -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   362
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   363
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   364
        -D "JDK_FNAME=hprof.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   365
        -D "JDK_INTERNAL_NAME=hprof" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   366
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   367
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libhprof_jvmti, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   368
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   369
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   370
BUILD_LIBRARIES += $(BUILD_LIBHPROF)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   371
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   372
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   373
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   374
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA_CRW_DEMO, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   375
    LIBRARY := java_crw_demo, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   376
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   377
    SRC := $(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   378
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   379
    OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   380
    CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   381
        -I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   382
    MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjava_crw_demo/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   383
    LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   384
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   385
    LDFLAGS_SUFFIX_solaris := -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   386
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   387
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   388
        -D "JDK_FNAME=java_crw_demo.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   389
        -D "JDK_INTERNAL_NAME=java_crw_demo" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   390
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   391
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjava_crw_demo, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   392
    DEBUG_SYMBOLS := true))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   393
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   394
BUILD_LIBRARIES += $(BUILD_LIBJAVA_CRW_DEMO)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   395
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   396
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   397
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   398
ifndef OPENJDK
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   399
  ifeq ($(ENABLE_JFR), true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   400
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   401
    $(eval $(call SetupNativeCompilation,BUILD_LIBJFR, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   402
        LIBRARY := jfr, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   403
        OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   404
        SRC := $(JDK_TOPDIR)/src/closed/share/native/oracle/jfr, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   405
        LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   406
        OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   407
        CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   408
            -I$(JDK_TOPDIR)/src/closed/share/javavm/export, \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21633
diff changeset
   409
        MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjfr/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   410
        LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   411
            $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   412
        LDFLAGS_SUFFIX_solaris := -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   413
        VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   414
        RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   415
            -D "JDK_FNAME=jfr.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   416
            -D "JDK_INTERNAL_NAME=jfr" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   417
            -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   418
        OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjfr, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   419
        DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   420
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   421
    BUILD_LIBRARIES += $(BUILD_LIBJFR)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   422
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   423
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   424
endif