jdk/makefiles/CompileNativeLibraries.gmk
author sundar
Mon, 08 Jul 2013 18:36:10 +0530
changeset 18856 ef883ef43731
parent 17448 c93083bb7f29
child 17734 e16be5d4f043
child 17673 33e311ad099a
permissions -rw-r--r--
8020035: nashorn jdk buildfile BuildNashorn.gmk still renamed jdk.nashorn.internal.objects package Reviewed-by: attila, jlaskey
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
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    26
defalt: all
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    27
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    28
include $(SPEC)
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    29
include MakeBase.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    30
include NativeCompilation.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    31
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    32
# Setup the java compilers for the JDK build.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    33
include Setup.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    34
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    35
# Copy files (can now depend on $(COPY_FILES))
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    36
include CopyFiles.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    37
15126
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14855
diff changeset
    38
# Prepare the find cache. Only used if running on windows.
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14855
diff changeset
    39
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/src))
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14855
diff changeset
    40
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    41
# Build tools
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    42
include Tools.gmk
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    43
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    44
# Include the javah generated headers.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    45
CFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    46
CXXFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    47
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    48
# Put the libraries here. Different locations for different target apis.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    49
ifeq ($(OPENJDK_TARGET_OS_API),posix)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    50
    INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    51
else
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    52
    INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/bin
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    53
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    54
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    55
BUILD_LIBRARIES=
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    56
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    57
# Absolute paths to lib files on windows for use in LDFLAGS. Should figure out a more
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    58
# elegant solution to this.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    59
WIN_VERIFY_LIB := $(JDK_OUTPUTDIR)/objs/libverify/verify.lib
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    60
WIN_JAVA_LIB := $(JDK_OUTPUTDIR)/objs/libjava/java.lib
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    61
WIN_AWT_LIB := $(JDK_OUTPUTDIR)/objs/libawt/awt.lib
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    62
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    63
# Use this variable to set DEBUG_SYMBOLS true on windows for all libraries, but
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    64
# not on other platforms.
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    65
ifeq ($(OPENJDK_TARGET_OS), windows)
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    66
    DEBUG_ALL_BINARIES := true
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    67
endif
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    68
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    69
# Build everything with debugging on OpenJDK
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    70
ifdef OPENJDK
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    71
    DEBUG_ALL_BINARIES := true
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    72
endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    73
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    74
#
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    75
# TODO replace with X_FLAGS / X_LIBS
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    76
#   and add them to configure
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    77
#
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    78
OPENWIN_LIB:=$(OPENWIN_HOME)/lib
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    79
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    80
##########################################################################################
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    81
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    82
BUILD_LIBFDLIBM_OPTIMIZATION:=HIGH
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    83
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    84
ifneq ($(OPENJDK_TARGET_OS), solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    85
      BUILD_LIBFDLIBM_OPTIMIZATION:=NONE
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    86
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    87
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    88
ifneq ($(OPENJDK_TARGET_OS),macosx)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    89
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    90
                STATIC_LIBRARY:=fdlibm,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    91
                OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    92
                SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    93
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    94
		OPTIMIZATION:=$(BUILD_LIBFDLIBM_OPTIMIZATION), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    95
		CFLAGS:=$(CFLAGS_JDKLIB) \
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    96
			-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    97
		CFLAGS_windows_debug:=-DLOGGING,\
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    98
		ARFLAGS:=$(ARFLAGS),\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
    99
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   100
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   101
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   102
else
14855
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   103
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   104
# On macosx the old build does partial (incremental) linking of fdlibm instead of
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   105
# a plain static library.
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   106
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM_MAC,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   107
                LIBRARY:=fdlibm,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   108
                OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   109
                SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   110
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   111
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   112
			-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\
14524
f2953186ad92 8001460: build-infra: Linker warnings on macosx
erikj
parents: 14426
diff changeset
   113
		LDFLAGS:=-nostdlib -r -arch x86_64,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   114
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   115
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   116
14855
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   117
BUILD_LIBFDLIBM := $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX)
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   118
$(BUILD_LIBFDLIBM) : $(BUILD_LIBFDLIBM_MAC)
16636
1cc691bcfe50 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents: 16513
diff changeset
   119
	$(call install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   120
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   121
endif
14855
d104ff4d4bb9 8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents: 14789
diff changeset
   122
BUILD_LIBRARIES += $(BUILD_LIBFDLIBM)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   123
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   124
##########################################################################################
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   125
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   126
BUILD_LIBVERIFY_SRC:=check_code.c check_format.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   127
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   128
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   129
	ifneq ($(OPENJDK_TARGET_CPU), x86_64)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   130
		BUILD_LIBVERIFY_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/reorder-$(OPENJDK_TARGET_CPU)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   131
	endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   132
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   133
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   134
LIBVERIFY_OPTIMIZATION:=HIGH
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   135
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),)
14707
511b222f99b2 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14706
diff changeset
   136
    ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   137
        LIBVERIFY_OPTIMIZATION:=LOW
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   138
    endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   139
endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   140
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   141
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   142
$(eval $(call SetupNativeCompilation,BUILD_LIBVERIFY,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   143
		LIBRARY:=verify, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   144
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   145
		SRC:=$(JDK_TOPDIR)/src/share/native/common,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   146
		INCLUDE_FILES:=$(BUILD_LIBVERIFY_SRC),\
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   147
		LANG:=C,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   148
		OPTIMIZATION:=$(LIBVERIFY_OPTIMIZATION), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   149
		CFLAGS:=$(CFLAGS_JDKLIB),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   150
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   151
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   152
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   153
		LDFLAGS_SUFFIX_posix:=-ljvm -lc,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   154
		LDFLAGS_SUFFIX_windows:=jvm.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   155
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   156
		RC_FLAGS:=$(RC_FLAGS) \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   157
			  -D "JDK_FNAME=verify.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   158
			  -D "JDK_INTERNAL_NAME=verify" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   159
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   160
		REORDER:=$(BUILD_LIBVERIFY_REORDER),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   161
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libverify,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   162
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   163
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   164
BUILD_LIBRARIES += $(BUILD_LIBVERIFY)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   165
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   166
##########################################################################################
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   167
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   168
LIBJAVA_SRC_DIRS:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/lang \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   169
		$(JDK_TOPDIR)/src/share/native/java/lang \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   170
		$(JDK_TOPDIR)/src/share/native/java/lang/ref \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   171
		$(JDK_TOPDIR)/src/share/native/java/lang/reflect \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   172
		$(JDK_TOPDIR)/src/share/native/java/io \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   173
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   174
		$(JDK_TOPDIR)/src/share/native/java/nio \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   175
		$(JDK_TOPDIR)/src/share/native/java/security \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   176
		$(JDK_TOPDIR)/src/share/native/common \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   177
		$(JDK_TOPDIR)/src/share/native/sun/misc \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   178
		$(JDK_TOPDIR)/src/share/native/sun/reflect \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   179
		$(JDK_TOPDIR)/src/share/native/java/util \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   180
		$(JDK_TOPDIR)/src/share/native/java/util/concurrent/atomic \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   181
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   182
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/util
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   183
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   184
ifneq ($(OPENJDK_TARGET_OS),macosx)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   185
    LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/util/locale/provider
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   186
else
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   187
    LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/macosx/native/sun/util/locale/provider
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   188
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   189
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   190
ifeq ($(OPENJDK_TARGET_OS),windows)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   191
    LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/provider \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   192
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/io
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   193
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   194
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   195
LIBJAVA_CFLAGS:=$(foreach dir,$(LIBJAVA_SRC_DIRS),-I$(dir)) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   196
		  -I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   197
                  -DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   198
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   199
LIBJAVA_CFLAGS += -DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   200
                  -DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   201
                  -DJDK_MICRO_VERSION='"$(JDK_MICRO_VERSION)"' \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   202
                  -DJDK_BUILD_NUMBER='"$(JDK_BUILD_NUMBER)"' 
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   203
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   204
ifneq (,$(JDK_UPDATE_VERSION))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   205
	LIBJAVA_CFLAGS += -DJDK_UPDATE_VERSION='"$(JDK_UPDATE_VERSION)"'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   206
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   207
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   208
LIBJAVA_EXCLUDE_FILES:=check_code.c check_format.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   209
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   210
ifneq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   211
	LIBJAVA_EXCLUDE_FILES += java_props_macosx.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   212
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   213
	BUILD_LIBJAVA_java_props_md.c_CFLAGS:=-x objective-c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   214
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   215
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   216
ifeq ($(OPENJDK_TARGET_OS),windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   217
        LIBJAVA_EXCLUDE_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   218
		UNIXProcess_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   219
		UnixFileSystem_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   220
		FileSystemPreferences.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   221
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   222
	LIBJAVA_EXCLUDE_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   223
		ProcessImpl_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   224
		WinNTFileSystem_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   225
		dirent_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   226
		WindowsPreferences.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   227
		sun/security/provider/WinCAPISeedGenerator.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   228
		sun/io/Win32ErrorMode.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   229
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   230
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   231
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   232
    ifneq ($(OPENJDK_TARGET_CPU), x86_64)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   233
        LIBJAVA_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/reorder-$(OPENJDK_TARGET_CPU)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   234
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   235
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   236
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   237
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   238
		LIBRARY:=java,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   239
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   240
		SRC:=$(LIBJAVA_SRC_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   241
		EXCLUDES:=fdlibm/src zip, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   242
		EXCLUDE_FILES:=$(LIBJAVA_EXCLUDE_FILES), \
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   243
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   244
		OPTIMIZATION:=HIGH, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   245
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   246
                        $(LIBJAVA_CFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   247
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   248
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   249
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   250
		LDFLAGS_SUFFIX_posix:=-ljvm -lverify, \
14526
a9ff17998eb7 8003528: build-infra: Diffs in libjava and hotspot libs on solaris.
erikj
parents: 14525
diff changeset
   251
		LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl -lscf $(LIBDL) $(BUILD_LIBFDLIBM) -lc,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   252
		LDFLAGS_SUFFIX_linux:=$(LIBDL) $(BUILD_LIBFDLIBM),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   253
		LDFLAGS_SUFFIX_macosx:=-L$(JDK_OUTPUTDIR)/objs/ -lfdlibm \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   254
                                         -framework CoreFoundation \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   255
                                         -framework Security -framework SystemConfiguration, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   256
		LDFLAGS_SUFFIX_windows:=-export:winFileHandleOpen -export:handleLseek \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   257
					jvm.lib $(BUILD_LIBFDLIBM) $(WIN_VERIFY_LIB) \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   258
					shell32.lib delayimp.lib -DELAYLOAD:shell32.dll \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   259
					advapi32.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   260
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   261
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   262
			  -D "JDK_FNAME=java.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   263
			  -D "JDK_INTERNAL_NAME=java" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   264
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   265
		REORDER:=$(LIBJAVA_REORDER), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   266
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   267
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   268
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   269
BUILD_LIBRARIES += $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   270
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   271
$(BUILD_LIBJAVA) : $(LIBJLI_BINARY)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   272
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   273
$(BUILD_LIBJAVA) : $(BUILD_LIBVERIFY)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   274
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   275
$(BUILD_LIBJAVA) : $(BUILD_LIBFDLIBM)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   276
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   277
##########################################################################################
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   278
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   279
BUILD_LIBMLIB_SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   280
BUILD_LIBMLIB_CFLAGS:=-D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   281
			-I$(BUILD_LIBMLIB_SRC) \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   282
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/medialib 
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   283
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   284
BUILD_LIBMLIB_LDLIBS:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   285
BUILD_LIBMLIB_IMAGE_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmlib_image/mapfile-vers
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   286
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   287
BUILD_LIBMLIB_CFLAGS += -DMLIB_NO_LIBSUNMATH
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   288
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   289
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   290
	BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   291
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   292
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   293
ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   294
	BUILD_LIBMLIB_LDLIBS += $(LIBM) $(LIBDL)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   295
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   296
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   297
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   298
		LIBRARY:=mlib_image,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   299
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   300
                SRC:=$(BUILD_LIBMLIB_SRC),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   301
		EXCLUDE_FILES:=awt_ImagingLib.c mlib_c_ImageBlendTable.c,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   302
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   303
		OPTIMIZATION:=HIGHEST, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   304
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   305
                        $(BUILD_LIBMLIB_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   306
		MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   307
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   308
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   309
		LDFLAGS_SUFFIX:=$(BUILD_LIBMLIB_LDLIBS) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   310
				$(LDFLAGS_JDKLIB_SUFFIX),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
   311
		LDFLAGS_SUFFIX_solaris:=-lc, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   312
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   313
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   314
			  -D "JDK_FNAME=mlib_image.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   315
			  -D "JDK_INTERNAL_NAME=mlib_image" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   316
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   317
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   318
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   319
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   320
$(BUILD_LIBMLIB_IMAGE) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   321
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   322
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   323
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   324
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   325
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   326
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH),solaris-sparc)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   327
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   328
BUILD_LIBMLIB_IMAGE_V_FILES:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   329
        mlib_v_ImageLookUp.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   330
        mlib_ImageCreate.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   331
        mlib_ImageAffine.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   332
        mlib_ImageConvMxN.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   333
        mlib_ImageConvKernelConvert.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   334
        mlib_sys.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   335
        mlib_ImageLookUp_64.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   336
        mlib_ImageLookUp_Bit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   337
        mlib_ImageColorTrue2Index.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   338
        mlib_c_ImageThresh1_U8.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   339
        mlib_v_ImageLookUpS16S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   340
        mlib_v_ImageLookUpS16S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   341
        mlib_v_ImageLookUpS16U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   342
        mlib_v_ImageLookUpS16U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   343
        mlib_v_ImageLookUpS32S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   344
        mlib_v_ImageLookUpS32S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   345
        mlib_v_ImageLookUpS32U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   346
        mlib_v_ImageLookUpS32U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   347
        mlib_v_ImageLookUpSIS16S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   348
        mlib_v_ImageLookUpSIS16S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   349
        mlib_v_ImageLookUpSIS16U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   350
        mlib_v_ImageLookUpSIS16U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   351
        mlib_v_ImageLookUpSIS32S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   352
        mlib_v_ImageLookUpSIS32S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   353
        mlib_v_ImageLookUpSIS32U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   354
        mlib_v_ImageLookUpSIS32U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   355
        mlib_v_ImageLookUpSIU16S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   356
        mlib_v_ImageLookUpSIU16S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   357
        mlib_v_ImageLookUpSIU16U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   358
        mlib_v_ImageLookUpSIU16U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   359
        mlib_v_ImageLookUpSIU8S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   360
        mlib_v_ImageLookUpSIU8S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   361
        mlib_v_ImageLookUpSIU8U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   362
        mlib_v_ImageLookUpSIU8U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   363
        mlib_v_ImageLookUpU16S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   364
        mlib_v_ImageLookUpU16S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   365
        mlib_v_ImageLookUpU16U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   366
        mlib_v_ImageLookUpU16U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   367
        mlib_v_ImageLookUpU8S16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   368
        mlib_v_ImageLookUpU8S32Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   369
        mlib_v_ImageLookUpU8U16Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   370
        mlib_v_ImageLookUpU8U8Func.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   371
        mlib_v_ImageAffineIndex_BC.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   372
        mlib_v_ImageAffine_BC.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   373
        mlib_v_ImageAffine_BC_S16.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   374
        mlib_v_ImageAffine_BC_U16.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   375
        mlib_v_ImageAffine_BL.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   376
        mlib_v_ImageAffine_BL_S16.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   377
        mlib_v_ImageAffine_BL_U16.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   378
        mlib_v_ImageAffine_NN.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   379
        mlib_v_ImageFilters.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   380
        mlib_ImageAffineEdge.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   381
        mlib_ImageAffine_BC_D64.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   382
        mlib_ImageAffine_BC_F32.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   383
        mlib_ImageAffine_BC_S32.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   384
        mlib_ImageAffine_BL_D64.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   385
        mlib_ImageAffine_BL_F32.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   386
        mlib_ImageAffine_BL_S32.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   387
        mlib_ImageAffine_NN.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   388
        mlib_ImageAffine_NN_Bit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   389
        mlib_ImageFilters.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   390
        mlib_ImageScanPoly.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   391
        mlib_ImageConv_8nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   392
        mlib_ImageConv_8ext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   393
        mlib_ImageConv_16nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   394
        mlib_ImageConv_16ext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   395
        mlib_ImageConv_u16nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   396
        mlib_ImageConv_u16ext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   397
        mlib_ImageConv_32nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   398
        mlib_ImageConv_F32nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   399
        mlib_ImageConvMxN_Fp.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   400
        mlib_ImageConvMxN_ext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   401
        mlib_ImageConv_D64nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   402
        mlib_ImageClipping.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   403
        mlib_ImageConvCopyEdge_Bit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   404
        mlib_ImageConvClearEdge_Bit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   405
        mlib_ImageConv2x2_f.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   406
        mlib_ImageConvClearEdge_Fp.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   407
        mlib_v_ImageConvMxN_8.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   408
        mlib_v_ImageConvClearEdge.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   409
        mlib_v_ImageConvCopyEdge.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   410
        mlib_v_ImageConvMxN_8ext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   411
        mlib_v_ImageConvVersion.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   412
        mlib_v_ImageConv_8nw.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   413
        mlib_ImageConvCopyEdge_Fp.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   414
        mlib_v_ImageChannelInsert_1.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   415
        mlib_v_ImageChannelExtract_43.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   416
        mlib_v_ImageChannelExtract_1.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   417
        mlib_ImageCopy_Bit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   418
        mlib_v_ImageCopy_f.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   419
        mlib_ImageUtils.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   420
        mlib_ImageDivTables.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   421
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   422
BUILD_LIBMLIB_V_CFLAGS := $(filter-out -DMLIB_NO_LIBSUNMATH,$(BUILD_LIBMLIB_CFLAGS))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   423
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   424
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   425
		LIBRARY:=mlib_image_v, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   426
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   427
                SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   428
		     $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   429
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   430
		INCLUDE_FILES:=$(BUILD_LIBMLIB_IMAGE_V_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   431
		OPTIMIZATION:=HIGHEST, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   432
		CFLAGS:=-xarch=sparcvis \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   433
                      $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   434
                      $(BUILD_LIBMLIB_V_CFLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   435
                      $(CFLAGS_JDKLIB), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   436
		MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   437
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   438
                         $(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   439
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
   440
		LDFLAGS_SUFFIX_solaris:=-lc,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   441
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image_v,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   442
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   443
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   444
$(BUILD_LIBMLIB_IMAGE_V): $(BUILD_LIBJAVA)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   445
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   446
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE_V)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   447
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   448
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   449
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   450
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   451
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   452
LIBAWT_DIRS:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   453
	$(JDK_TOPDIR)/src/share/native/sun/awt \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   454
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   455
	$(JDK_TOPDIR)/src/share/native/sun/awt/image \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   456
	$(JDK_TOPDIR)/src/share/native/sun/awt/image/gif \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   457
	$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   458
	$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   459
	$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   460
	$(JDK_TOPDIR)/src/share/native/sun/awt/utility \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   461
	$(JDK_TOPDIR)/src/share/native/sun/java2d \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   462
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   463
	$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   464
	$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   465
	$(JDK_TOPDIR)/src/share/native/sun/awt/image \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   466
	$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   467
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   468
	$(JDK_TOPDIR)/src/share/native/sun/font
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   469
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   470
ifeq ($(OPENJDK_TARGET_OS),windows)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   471
    LIBAWT_DIRS+=\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   472
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   473
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   474
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/d3d
15883
f57291ffafbf 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
erikj
parents: 15676
diff changeset
   475
    LIBAWT_CFLAGS+=-I$(DXSDK_INCLUDE_PATH)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   476
else
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   477
    LIBAWT_DIRS+=\
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   478
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   479
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   480
15883
f57291ffafbf 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
erikj
parents: 15676
diff changeset
   481
LIBAWT_CFLAGS+=-D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   482
	$(X_CFLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   483
	$(foreach dir,$(LIBAWT_DIRS),-I$(dir))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   484
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   485
LIBAWT_FILES:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   486
	gifdecoder.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   487
	imageInitIDs.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   488
	img_globals.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   489
	SurfaceData.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   490
	Region.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   491
	BufImgSurfaceData.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   492
	Disposer.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   493
	Trace.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   494
	GraphicsPrimitiveMgr.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   495
	Blit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   496
	BlitBg.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   497
	ScaledBlit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   498
	FillRect.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   499
	FillSpans.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   500
	FillParallelogram.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   501
	DrawParallelogram.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   502
	DrawLine.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   503
	DrawRect.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   504
	DrawPolygons.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   505
	DrawPath.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   506
	FillPath.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   507
	ProcessPath.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   508
	MaskBlit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   509
	MaskFill.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   510
	TransformHelper.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   511
	AlphaMath.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   512
	AlphaMacros.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   513
	AnyByte.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   514
	ByteBinary1Bit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   515
	ByteBinary2Bit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   516
	ByteBinary4Bit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   517
	ByteIndexed.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   518
	ByteGray.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   519
	Index8Gray.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   520
	Index12Gray.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   521
	AnyShort.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   522
	Ushort555Rgb.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   523
	Ushort565Rgb.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   524
	Ushort4444Argb.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   525
	Ushort555Rgbx.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   526
	UshortGray.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   527
	UshortIndexed.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   528
	Any3Byte.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   529
	ThreeByteBgr.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   530
	AnyInt.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   531
	IntArgb.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   532
	IntArgbPre.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   533
	IntArgbBm.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   534
	IntRgb.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   535
	IntBgr.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   536
	IntRgbx.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   537
	Any4Byte.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   538
	FourByteAbgr.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   539
	FourByteAbgrPre.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   540
	BufferedMaskBlit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   541
	BufferedRenderPipe.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   542
	ShapeSpanIterator.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   543
	SpanClipRenderer.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   544
	awt_ImageRep.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   545
	awt_ImagingLib.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   546
	awt_Mlib.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   547
	awt_parseImage.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   548
	DataBufferNative.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   549
	dither.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   550
	debug_assert.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   551
	debug_mem.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   552
	debug_trace.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   553
	debug_util.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   554
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   555
ifneq (,$(filter $(OPENJDK_TARGET_OS), solaris linux))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   556
	LIBAWT_FILES += awt_LoadLibrary.c initIDs.c img_colors.c
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   557
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   558
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   559
ifeq ($(OPENJDK_TARGET_OS),macosx)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   560
	LIBAWT_FILES += awt_LoadLibrary.c img_colors.c
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   561
	LIBAWT_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/apple/resources
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   562
	LIBAWT_FILES += awt_LoadLibrary.c MacOSXResourceBundle.m
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   563
	LIBAWT_CFLAGS += -F/System/Library/Frameworks/JavaVM.framework/Frameworks
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   564
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   565
	LIBAWT_MacOSXResourceBundle.m_CFLAGS:=-O0
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   566
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   567
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   568
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   569
        LIBAWT_CFLAGS += -DMLIB_ADD_SUFF
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   570
        LIBAWT_CFLAGS += -xarch=sparcvis
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   571
	LIBAWT_CFLAGS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   572
        LIBAWT_CFLAGS += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   573
            -I$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   574
            -I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/medialib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   575
            -I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   576
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   577
	LIBAWT_DIRS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   578
                       $(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   579
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   580
	LIBAWT_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   581
                vis_FuncArray.c           \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   582
                java2d_Mlib.c             \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   583
                mlib_ImageCreate.c        \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   584
                mlib_ImageZoom_NN.c       \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   585
                mlib_ImageCopy_Bit.c      \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   586
                mlib_sys.c                \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   587
                mlib_v_ImageClear.c       \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   588
                mlib_v_ImageClear_f.c     \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   589
                mlib_v_ImageConstXor.c    \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   590
                mlib_v_ImageCopy.c        \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   591
                mlib_v_ImageCopy_f.c      \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   592
                mlib_v_ImageXor.c         \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   593
                mlib_v_ImageZoom_NN_f.c   \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   594
                vis_Interp.c              \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   595
                vis_AlphaMacros.c         \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   596
                vis_AlphaMaskBlit.c       \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   597
                vis_AlphaMaskFill.c       \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   598
                vis_ByteGray.c            \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   599
                vis_ByteGray_FromRgb.c    \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   600
                vis_ByteGray_Mask.c       \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   601
                vis_ByteIndexed.c         \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   602
                vis_DrawLine.c            \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   603
                vis_FourByteAbgr.c        \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   604
                vis_IntArgb.c             \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   605
                vis_IntArgbPre.c          \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   606
                vis_IntArgbPre_Mask.c     \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   607
                vis_IntBgr.c              \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   608
                vis_IntRgb.c              \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   609
                vis_IntRgbx.c             \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   610
                vis_SrcMaskFill.c         \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   611
                vis_SrcOverMaskBlit.c     \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   612
                vis_SrcOverMaskFill.c     \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   613
                vis_FourByteAbgrPre.c     \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   614
                vis_GlyphList.c           \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   615
                vis_GlyphListXor.c        \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   616
                vis_IntArgbBm.c           \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   617
                vis_ThreeByteBgr.c        \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   618
                vis_UshortGray.c          \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   619
                vis_UshortGray_FromRgb.c  \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   620
                vis_XorBlit.c             \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   621
                mlib_v_ImageCopy_blk.s
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   622
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   623
	ifeq ($(OPENJDK_TARGET_CPU),sparcv9)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   624
		LIBAWT_ASFLAGS=-P -xarch=v9a
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   625
	else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   626
		LIBAWT_ASFLAGS=-P -xarch=v8plusa
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   627
	endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   628
else
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   629
	LIBAWT_FILES += MapAccelFunc.c
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   630
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   631
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   632
ifneq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   633
	LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   634
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   635
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   636
LIBAWT_LANG:=C
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   637
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   638
ifeq ($(OPENJDK_TARGET_OS),windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   639
	LIBAWT_FILES += AccelGlyphCache.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   640
			ShaderList.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   641
			CmdIDList.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   642
			Hashtable.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   643
			GDIHashtable.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   644
			Devices.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   645
			ObjectList.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   646
			GDIBlitLoops.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   647
			GDIRenderer.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   648
			GDIWindowSurfaceData.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   649
			WindowsFlags.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   650
			WPrinterJob.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   651
			awt_%.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   652
			D3DBlitLoops.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   653
			D3DBufImgOps.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   654
			D3DContext.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   655
			D3DGlyphCache.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   656
			D3DGraphicsDevice.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   657
			D3DMaskBlit.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   658
			D3DMaskCache.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   659
			D3DMaskFill.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   660
			D3DPipelineManager.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   661
			D3DPaints.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   662
			D3DRenderer.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   663
			D3DRenderQueue.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   664
			D3DResourceManager.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   665
			D3DSurfaceData.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   666
			D3DTextRenderer.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   667
			D3DVertexCacher.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   668
			ShellFolder2.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   669
			ThemeReader.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   670
			ComCtl32Util.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   671
			DllUtil.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   672
			initIDs.cpp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   673
			MouseInfo.cpp \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   674
			rect.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   675
			OGLBlitLoops.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   676
			OGLBufImgOps.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   677
		        OGLContext.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   678
		        OGLFuncs.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   679
		        OGLMaskBlit.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   680
		        OGLMaskFill.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   681
		        OGLPaints.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   682
		        OGLRenderQueue.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   683
		        OGLRenderer.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   684
		        OGLSurfaceData.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   685
		        OGLTextRenderer.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   686
		        OGLVertexCache.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   687
		        WGLGraphicsConfig.c \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   688
		        WGLSurfaceData.c
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   689
	LIBAWT_LANG:=C++
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   690
	LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   691
	ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   692
		LIBAWT_CFLAGS += -DMLIB_OS64BIT
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   693
	endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   694
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   695
	ifdef OPENJDK
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   696
		LIBAWT_RC_FLAGS:=-i "$(JDK_TOPDIR)/src/windows/resource/icons"
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   697
	else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   698
		LIBAWT_RC_FLAGS:=-i "$(JDK_TOPDIR)/src/closed/windows/native/sun/windows"
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   699
	endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   700
	LIBAWT_VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/native/sun/windows/awt.rc
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   701
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   702
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   703
ifeq ($(MILESTONE), internal)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   704
	LIBAWT_CFLAGS += -DINTERNAL_BUILD
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   705
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   706
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   707
LIBAWT_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt/mapfile-vers
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   708
ifeq ($(OPENJDK_TARGET_OS),linux)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   709
	LIBAWT_MAPFILE:=
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   710
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   711
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   712
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   713
		LIBRARY:=awt,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   714
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   715
		SRC:=$(LIBAWT_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   716
		INCLUDE_FILES:=$(LIBAWT_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   717
		LANG:=$(LIBAWT_LANG),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   718
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   719
		CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   720
		ASFLAGS:=$(LIBAWT_ASFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   721
		MAPFILE:=$(LIBAWT_MAPFILE), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   722
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   723
		LDFLAGS_solaris:=-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   724
		LDFLAGS_SUFFIX_linux:=-ljvm $(LIBM) $(LIBDL) -ljava,\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
   725
		LDFLAGS_SUFFIX_solaris:=-ljvm $(LIBM) $(LIBDL) -ljava -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   726
		LDFLAGS_SUFFIX_macosx:=-lmlib_image -ljvm $(LIBM) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   727
				       -framework Cocoa \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   728
				       -framework OpenGL \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   729
				       -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   730
				       -framework JavaNativeFoundation \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   731
				       -framework JavaRuntimeSupport \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   732
				       -framework ApplicationServices \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   733
				       -framework AudioToolbox \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   734
				       -ljava,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   735
		LDFLAGS_SUFFIX_windows:=kernel32.lib user32.lib gdi32.lib winspool.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   736
					imm32.lib ole32.lib uuid.lib shell32.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   737
					comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   738
					delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   739
					-DELAYLOAD:user32.dll -DELAYLOAD:gdi32.dll \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   740
					-DELAYLOAD:shell32.dll -DELAYLOAD:winmm.dll \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   741
					-DELAYLOAD:winspool.drv -DELAYLOAD:imm32.dll \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   742
					-DELAYLOAD:ole32.dll -DELAYLOAD:comdlg32.dll \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   743
					-DELAYLOAD:comctl32.dll -DELAYLOAD:shlwapi.dll,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   744
		VERSIONINFO_RESOURCE:=$(LIBAWT_VERSIONINFO_RESOURCE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   745
		RC_FLAGS:=$(RC_FLAGS) $(LIBAWT_RC_FLAGS) \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   746
			  -D "JDK_FNAME=awt.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   747
			  -D "JDK_INTERNAL_NAME=awt" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   748
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   749
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   750
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   751
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   752
$(BUILD_LIBAWT) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   753
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   754
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   755
$(BUILD_LIBAWT) : $(BUILD_LIBMLIB_IMAGE)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   756
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   757
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   758
BUILD_LIBRARIES += $(BUILD_LIBAWT)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   759
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   760
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   761
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   762
# TODO!!
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   763
# Even though this variable as a general name, it is
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   764
# only used on macos, in fontpath.c, as prefix for where to find fonts.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   765
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   766
# It's used for libawt_headless _and_ libawt_xawt
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   767
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   768
X11_PATH:=/usr/X11R6
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   769
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   770
ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   771
ifndef BUILD_HEADLESS_ONLY
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   772
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   773
LIBAWT_XAWT_DIRS:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   774
		$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   775
		$(JDK_TOPDIR)/src/share/native/sun/awt/utility \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   776
		$(JDK_TOPDIR)/src/share/native/sun/font \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   777
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   778
		$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   779
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   780
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   781
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   782
		$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/xawt \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   783
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   784
LIBAWT_XAWT_CFLAGS:=-DXAWT -DXAWT_HACK \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   785
        -DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   786
	$(CUPS_CFLAGS) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   787
	$(foreach dir,$(LIBAWT_XAWT_DIRS),-I$(dir)) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   788
	-I$(JDK_TOPDIR)/src/share/native/sun/java2d \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   789
	-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   790
	-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   791
	-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   792
	-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   793
	-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   794
	-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   795
	-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   796
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   797
ifeq ($(OPENJDK_TARGET_OS),solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   798
	LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   799
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   800
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   801
ifeq ($(MILESTONE),internal)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   802
	LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   803
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   804
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   805
LIBAWT_XAWT_FILES:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   806
	XlibWrapper.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   807
	XWindow.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   808
	XToolkit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   809
	X11Color.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   810
	X11SurfaceData.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   811
	awt_GraphicsEnv.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   812
	awt_InputMethod.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   813
	robot_common.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   814
	awt_Robot.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   815
        list.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   816
        multiVis.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   817
	initIDs.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   818
	awt_util.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   819
	awt_Desktop.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   820
	awt_UNIXToolkit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   821
	X11FontScaler_md.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   822
	X11TextRenderer_md.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   823
	fontpath.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   824
	awt_Insets.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   825
	awt_Event.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   826
	X11Renderer.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   827
	X11PMBlitLoops.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   828
	OGLBlitLoops.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   829
	OGLBufImgOps.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   830
	OGLContext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   831
	OGLFuncs.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   832
	OGLMaskBlit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   833
	OGLMaskFill.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   834
	OGLPaints.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   835
	OGLRenderQueue.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   836
	OGLRenderer.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   837
	OGLSurfaceData.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   838
	OGLTextRenderer.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   839
	OGLVertexCache.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   840
	GLXGraphicsConfig.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   841
	GLXSurfaceData.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   842
	AccelGlyphCache.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   843
	awt_Font.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   844
	multi_font.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   845
	awt_AWTEvent.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   846
	awt_DrawingSurface.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   847
	jawt.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   848
	CUPSfuncs.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   849
	debug_assert.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   850
	debug_mem.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   851
	debug_trace.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   852
	debug_util.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   853
	awt_Plugin.c \
16471
33bca48c948b 7123476: DesktopOpenTests:When enter the file path and click the open button,it crash
denis
parents: 16127
diff changeset
   854
        gnome_interface.c \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   855
	gtk2_interface.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   856
        swing_GTKEngine.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   857
        swing_GTKStyle.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   858
        rect.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   859
	sun_awt_X11_GtkFileDialogPeer.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   860
	XRSurfaceData.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   861
	XRBackendNative.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   862
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   863
LIBAWT_XAWT_LDFLAGS_SUFFIX:=$(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi  -ljava -ljvm -lc
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   864
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   865
ifeq ($(OPENJDK_TARGET_OS), linux)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   866
        # To match old build, add this to LDFLAGS instead of suffix.
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   867
	LIBAWT_XAWT_LDFLAGS += -lpthread
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   868
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   869
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   870
ifeq ($(OPENJDK_TARGET_OS), macosx)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   871
	LIBAWT_XAWT_LDFLAGS_SUFFIX += -lpthread
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   872
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   873
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   874
# On macosx, the shared library origin is set twice for this lib.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   875
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_XAWT,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   876
		LIBRARY:=awt_xawt,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   877
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   878
		SRC:=$(LIBAWT_XAWT_DIRS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   879
		INCLUDE_FILES:=$(LIBAWT_XAWT_FILES),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   880
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   881
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   882
		CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   883
                        $(X_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   884
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_xawt/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   885
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   886
			 $(X_LIBS) $(LIBAWT_XAWT_LDFLAGS),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   887
		LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   888
			       $(call SET_SHARED_LIBRARY_ORIGIN,/..),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   889
		LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   890
				 -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   891
				 -R$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   892
				 -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   893
				 -R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   894
			 	 $(call SET_SHARED_LIBRARY_ORIGIN) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   895
			 	 $(call SET_SHARED_LIBRARY_ORIGIN,/..),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   896
		LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   897
				$(call SET_SHARED_LIBRARY_ORIGIN). \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   898
				$(call SET_SHARED_LIBRARY_ORIGIN) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   899
				$(call SET_SHARED_LIBRARY_ORIGIN).,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   900
		LDFLAGS_SUFFIX:=$(LIBAWT_XAWT_LDFLAGS_SUFFIX),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   901
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   902
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   903
			  -D "JDK_FNAME=xawt.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   904
			  -D "JDK_INTERNAL_NAME=xawt" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   905
			  -D "JDK_FTYPE=0x2L",\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   906
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_xawt,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   907
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   908
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   909
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   910
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   911
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   912
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   913
BUILD_LIBRARIES += $(BUILD_LIBAWT_XAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   914
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   915
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   916
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   917
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   918
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   919
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   920
BUILD_LIBZIP_EXCLUDES :=
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   921
ifeq ($(USE_EXTERNAL_LIBZ),true)
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   922
    LIBZ := -lz
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   923
    LIBZIP_EXCLUDES += zlib-1.2.5
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   924
else
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   925
    ZLIB_CPPFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   926
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   927
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   928
BUILD_LIBZIP_REORDER :=
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   929
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   930
    ifneq ($(OPENJDK_TARGET_CPU), x86_64)
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   931
        BUILD_LIBZIP_REORDER := $(JDK_TOPDIR)/makefiles/mapfiles/libzip/reorder-$(OPENJDK_TARGET_CPU)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   932
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   933
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   934
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   935
ifeq ($(LIBZIP_CAN_USE_MMAP), true)
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   936
     BUILD_LIBZIP_MMAP := -DUSE_MMAP
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   937
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   938
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   939
$(eval $(call SetupNativeCompilation,BUILD_LIBZIP,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   940
                LIBRARY:=zip,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   941
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   942
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   943
		OPTIMIZATION:=LOW, \
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   944
		SRC:=$(JDK_TOPDIR)/src/share/native/java/util/zip,\
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   945
		EXCLUDES:=$(LIBZIP_EXCLUDES),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   946
		CFLAGS:=$(CFLAGS_JDKLIB) \
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
   947
                        $(ZLIB_CPPFLAGS) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   948
		        -I$(JDK_TOPDIR)/src/share/native/java/io \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   949
                        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   950
		CFLAGS_posix:=$(BUILD_LIBZIP_MMAP) -UDEBUG,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   951
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libzip/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   952
		REORDER:=$(BUILD_LIBZIP_REORDER), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   953
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   954
			 $(call SET_SHARED_LIBRARY_ORIGIN) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   955
			 $(EXPORT_ZIP_FUNCS), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   956
		LDFLAGS_windows:=-export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   957
                                -export:ZIP_ReadEntry -export:ZIP_GetNextEntry jvm.lib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   958
                                $(WIN_JAVA_LIB),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   959
		LDFLAGS_SUFFIX_linux:=-ljvm -ljava $(LIBZ),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
   960
		LDFLAGS_SUFFIX_solaris:=-ljvm -ljava $(LIBZ) -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   961
		LDFLAGS_SUFFIX_macosx:=$(LIBZ) -ljava -ljvm,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   962
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   963
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   964
			  -D "JDK_FNAME=zip.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   965
			  -D "JDK_INTERNAL_NAME=zip" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   966
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   967
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libzip,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   968
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   969
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   970
$(BUILD_LIBZIP) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   971
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   972
BUILD_LIBRARIES += $(BUILD_LIBZIP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   973
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   974
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   975
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   976
$(eval $(call SetupNativeCompilation,BUILD_LIBUNPACK,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   977
		LIBRARY:=unpack, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   978
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   979
                SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/java/util/jar/pack,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   980
		EXCLUDE_FILES:=main.cpp,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   981
		LANG:=C++,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   982
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   983
		CFLAGS:=$(CXXFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   984
			 -DNO_ZLIB -DUNPACK_JNI -DFULL,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   985
		CFLAGS_release:=-DPRODUCT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   986
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libunpack/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   987
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   988
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   989
		LDFLAGS_windows:=-map:$(JDK_OUTPUTDIR)/objs/unpack.map -debug \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   990
				jvm.lib $(WIN_JAVA_LIB),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   991
		LDFLAGS_SUFFIX_posix:=-ljvm $(LIBCXX) -ljava -lc,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   992
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libunpack,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   993
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   994
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   995
			  -D "JDK_FNAME=unpack.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   996
			  -D "JDK_INTERNAL_NAME=unpack" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   997
			  -D "JDK_FTYPE=0x2L",\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
   998
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   999
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1000
$(BUILD_LIBUNPACK) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1001
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1002
BUILD_LIBRARIES += $(BUILD_LIBUNPACK)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1003
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1004
ifeq ($(OPENJDK_TARGET_OS),windows)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1005
    $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.map: $(BUILD_LIBUNPACK)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1006
	$(ECHO) Copying $(@F)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1007
	$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.map,$<) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1008
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1009
    $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.pdb: $(BUILD_LIBUNPACK)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1010
	$(ECHO) Copying $(@F)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1011
	$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.pdb,$<) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1012
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1013
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1014
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1015
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1016
LIBATTACH_EXCLUDE_FILES:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1017
ifneq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1018
    LIBATTACH_EXCLUDE_FILES+=SolarisVirtualMachine.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1019
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1020
ifneq ($(OPENJDK_TARGET_OS),linux)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1021
    LIBATTACH_EXCLUDE_FILES+=LinuxVirtualMachine.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1022
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1023
ifneq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1024
    LIBATTACH_EXCLUDE_FILES+=BsdVirtualMachine.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1025
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1026
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1027
$(eval $(call SetupNativeCompilation,BUILD_LIBATTACH,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1028
		LIBRARY:=attach, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1029
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1030
                SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tools/attach,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1031
		EXCLUDE_FILES:=$(LIBATTACH_EXCLUDE_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1032
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1033
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1034
		CFLAGS:=$(CFLAGS_JDKLIB),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1035
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libattach/mapfile-$(OPENJDK_TARGET_OS), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1036
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1037
		RC_FLAGS:=$(RC_FLAGS) \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1038
			  -D "JDK_FNAME=attach.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1039
			  -D "JDK_INTERNAL_NAME=attach" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1040
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1041
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1042
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1043
		LDFLAGS_solaris:=-ldoor,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1044
		LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1045
		LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib psapi.lib,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1046
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libattach,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1047
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1048
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1049
$(BUILD_LIBATTACH) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1050
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1051
BUILD_LIBRARIES += $(BUILD_LIBATTACH)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1052
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1053
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1054
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1055
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SOCKET,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1056
		LIBRARY:=dt_socket,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1057
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1058
                SRC:=$(JDK_TOPDIR)/src/share/transport/socket \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1059
			$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1060
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1061
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1062
		CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1063
                        -I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1064
                        -I$(JDK_TOPDIR)/src/share/transport/socket \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1065
		        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1066
                        -I$(JDK_TOPDIR)/src/share/back/export \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1067
                        -I$(JDK_TOPDIR)/src/share/back,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1068
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdt_socket/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1069
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1070
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1071
		LDFLAGS_SUFFIX_linux:=-lpthread,\
14344
a5537423264b 8002220: build-infra: update for mac, solaris 11 issues
erikj
parents: 14235
diff changeset
  1072
		LDFLAGS_SUFFIX_solaris:=-lnsl -lsocket -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1073
		LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) -export:jdwpTransport_OnLoad ws2_32.lib,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1074
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1075
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1076
			  -D "JDK_FNAME=dt_socket.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1077
			  -D "JDK_INTERNAL_NAME=dt_socket" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1078
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1079
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_socket,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1080
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1081
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1082
$(BUILD_LIBDT_SOCKET) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1083
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1084
BUILD_LIBRARIES += $(BUILD_LIBDT_SOCKET)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1085
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1086
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1087
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1088
ifeq ($(OPENJDK_TARGET_OS),windows)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1089
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1090
  $(eval $(call SetupNativeCompilation,BUILD_LIBDT_SHMEM,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1091
		LIBRARY:=dt_shmem,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1092
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1093
                SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/tools/jdi \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1094
			$(JDK_TOPDIR)/src/share/transport/shmem \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1095
			$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1096
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1097
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1098
		CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1099
                        -I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1100
                        -I$(JDK_TOPDIR)/src/share/transport/shmem \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1101
		        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1102
                        -I$(JDK_TOPDIR)/src/share/back/export, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1103
		LDFLAGS:=$(LDFLAGS_JDKLIB),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1104
		LDFLAGS_windows:=-export:jdwpTransport_OnLoad,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1105
		LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1106
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1107
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1108
			  -D "JDK_FNAME=dt_shmem.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1109
			  -D "JDK_INTERNAL_NAME=dt_shmem" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1110
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1111
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_shmem,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1112
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1113
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1114
  BUILD_LIBRARIES += $(BUILD_LIBDT_SHMEM)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1115
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1116
endif # OPENJDK_TARGET_OS
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1117
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1118
##########################################################################################
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1119
# JDWP_LOGGING causes log messages to be compiled into the library.
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1120
$(eval $(call SetupNativeCompilation,BUILD_LIBJDWP,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1121
		LIBRARY:=jdwp, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1122
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1123
                SRC:=$(JDK_TOPDIR)/src/share/back $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1124
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1125
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1126
		CFLAGS:=$(CFLAGS_JDKLIB) -DJDWP_LOGGING\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1127
		 -I$(JDK_TOPDIR)/src/share/transport/export \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1128
                 -I$(JDK_TOPDIR)/src/share/back/export \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1129
                 -I$(JDK_TOPDIR)/src/share/npt \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1130
                 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1131
                 -I$(JDK_TOPDIR)/src/share/back \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1132
                 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1133
		 -I$(JDK_OUTPUTDIR)/gensrc_jdwp_headers,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1134
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdwp/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1135
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1136
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1137
		LDFLAGS_SUFFIX_linux:=$(LIBDL),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1138
		LDFLAGS_SUFFIX_solaris:=$(LIBDL) -lc,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1139
		LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1140
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1141
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1142
			  -D "JDK_FNAME=jdwp.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1143
			  -D "JDK_INTERNAL_NAME=jdwp" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1144
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1145
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjdwp,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1146
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1147
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1148
$(BUILD_LIBJDWP) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1149
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1150
BUILD_LIBRARIES += $(BUILD_LIBJDWP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1151
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1152
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1153
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1154
LIBJAAS_MAPFILE:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1155
ifneq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1156
   LIBJAAS_EXCLUDE_FILES:=Solaris.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1157
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1158
   # only on solaris...wonder why
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1159
   LIBJAAS_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjaas/mapfile-vers
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1160
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1161
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1162
LIBJAAS_NAME:=jaas_unix
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1163
ifeq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1164
     LIBJAAS_NAME:=jaas_nt
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1165
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1166
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1167
$(eval $(call SetupNativeCompilation,BUILD_LIBJAAS,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1168
		LIBRARY:=$(LIBJAAS_NAME),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1169
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1170
                SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/security/auth/module,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1171
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1172
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1173
		CFLAGS:=$(CFLAGS_JDKLIB),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1174
		MAPFILE:=$(LIBJAAS_MAPFILE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1175
		LDFLAGS:=$(filter-out -ljava,$(LDFLAGS_JDKLIB)) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1176
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1177
		LDFLAGS_windows:=netapi32.lib user32.lib mpr.lib advapi32.lib,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1178
		LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1179
		LDFLAGS_SUFFIX_solaris:=-lc,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1180
		EXCLUDE_FILES:=$(LIBJAAS_EXCLUDE_FILES),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1181
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1182
		RC_FLAGS:=$(RC_FLAGS) \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1183
			  -D "JDK_FNAME=$(LIBJAAS_NAME).dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1184
			  -D "JDK_INTERNAL_NAME=$(LIBJAAS_NAME)" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1185
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1186
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjaas,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1187
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1188
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1189
$(BUILD_LIBJAAS) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1190
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1191
BUILD_LIBRARIES += $(BUILD_LIBJAAS)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1192
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1193
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1194
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1195
$(eval $(call SetupNativeCompilation,BUILD_LIBJSDT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1196
		LIBRARY:=jsdt,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1197
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1198
                SRC:=$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1199
			$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tracing/dtrace,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1200
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1201
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1202
		CFLAGS:=$(CFLAGS_JDKLIB)\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1203
			-I$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1204
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsdt/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1205
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1206
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1207
		LDFLAGS_SUFFIX_linux:=$(LIBDL),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1208
		LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBDL),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1209
		LDFLAGS_SUFFIX_macosx:=                         $(LIBDL),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1210
		LDFLAGS_SUFFIX_solaris:=-lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1211
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1212
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1213
			  -D "JDK_FNAME=jsdt.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1214
			  -D "JDK_INTERNAL_NAME=jsdt" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1215
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1216
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsdt, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1217
                DEBUG_SYMBOLS:=true))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1218
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1219
$(BUILD_LIBJSDT) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1220
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1221
BUILD_LIBRARIES += $(BUILD_LIBJSDT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1222
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1223
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1224
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1225
    # TODO: Update awt lib path when awt is converted
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1226
    $(eval $(call SetupNativeCompilation,BUILD_LIBLCMS,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1227
                LIBRARY:=lcms,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1228
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  1229
                SRC:=$(JDK_TOPDIR)/src/share/native/sun/java2d/cmm/lcms,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1230
		LANG:=C,\
15974
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 15676
diff changeset
  1231
		OPTIMIZATION:=HIGHEST, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1232
		CFLAGS:=$(filter-out -xc99=%none,$(CFLAGS_JDKLIB)) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1233
			$(SHARED_LIBRARY_FLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1234
			-I$(JDK_TOPDIR)/src/share/native/sun/java2d \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1235
			-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1236
		CFLAGS_solaris:=-xc99=no_lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1237
		CFLAGS_windows:=-DCMS_IS_WINDOWS_,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1238
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/liblcms/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1239
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1240
                         $(call SET_SHARED_LIBRARY_ORIGIN), \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1241
		LDFLAGS_solaris:=/usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1242
		LDFLAGS_windows:=$(WIN_AWT_LIB) $(WIN_JAVA_LIB),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1243
		LDFLAGS_SUFFIX_solaris:=-lawt -ljava -ljvm -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1244
		LDFLAGS_SUFFIX_macosx:=$(LIBM) -lawt -ljava -ljvm,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1245
		LDFLAGS_SUFFIX_linux:=-lm -lawt -ljava -ljvm,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1246
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1247
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1248
			  -D "JDK_FNAME=lcms.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1249
			  -D "JDK_INTERNAL_NAME=lcms" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1250
			  -D "JDK_FTYPE=0x2L",\
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1251
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/liblcms,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1252
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1253
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1254
    BUILD_LIBRARIES += $(BUILD_LIBLCMS)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1255
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1256
    $(BUILD_LIBLCMS) : $(BUILD_LIBAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1257
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1258
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1259
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1260
ifdef OPENJDK
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1261
    BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1262
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1263
    BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers-closed
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1264
    BUILD_LIBJPEG_CLOSED_SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/awt/image/jpeg
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1265
    BUILD_LIBJPEG_CLOSED_INCLUDES:=-I$(BUILD_LIBJPEG_CLOSED_SRC)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1266
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1267
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1268
BUILD_LIBJPEG_REORDER:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1269
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1270
    ifneq ($(OPENJDK_TARGET_CPU), x86_64)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1271
        BUILD_LIBJPEG_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1272
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1273
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1274
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1275
# Suppress gcc warnings like "variable might be clobbered by 'longjmp'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1276
# or 'vfork'": this warning indicates that some variable is placed to
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1277
# a register by optimized compiler and it's value might be lost on longjmp().
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1278
# Recommended way to avoid such warning is to declare the variable as
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1279
# volatile to prevent the optimization. However, this approach does not
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1280
# work because we have to declare all variables as volatile in result.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1281
#ifndef CROSS_COMPILE_ARCH
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1282
#    CC_43_OR_NEWER:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1283
#        $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1284
#              \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) )
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1285
#    ifeq ($(CC_43_OR_NEWER),1)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1286
#        BUILD_LIBJPEG_CFLAGS_linux += -Wno-clobbered
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1287
#    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1288
#endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1289
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1290
$(eval $(call SetupNativeCompilation,BUILD_LIBJPEG,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1291
                LIBRARY:=jpeg, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1292
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1293
                SRC:=$(BUILD_LIBJPEG_CLOSED_SRC) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1294
		     $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1295
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1296
		OPTIMIZATION:=HIGHEST, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1297
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1298
			$(BUILD_LIBJPEG_CLOSED_INCLUDES) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1299
			-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1300
		MAPFILE:=$(BUILD_LIBJPEG_MAPFILE), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1301
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1302
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1303
		LDFLAGS_windows:=$(WIN_JAVA_LIB) jvm.lib,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1304
		LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1305
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1306
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1307
			  -D "JDK_FNAME=jpeg.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1308
			  -D "JDK_INTERNAL_NAME=jpeg" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1309
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1310
		REORDER:=$(BUILD_LIBJPEG_REORDER),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1311
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjpeg,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1312
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1313
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1314
$(BUILD_LIBJPEG) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1315
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1316
BUILD_LIBRARIES += $(BUILD_LIBJPEG)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1317
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1318
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1319
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1320
ifndef OPENJDK
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1321
    FONT_HEADERS:=-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1322
    BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1323
    LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1324
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1325
    FONT_HEADERS:=$(FREETYPE2_CFLAGS)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1326
    BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1327
    BUILD_LIBFONTMANAGER_FONTLIB:=$(FREETYPE2_LIBS)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1328
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1329
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1330
LIBFONTMANAGER_OPTIMIZATION:=HIGH
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1331
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1332
ifeq ($(OPENJDK_TARGET_OS),windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1333
    LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1334
				    X11TextRenderer.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1335
    LIBFONTMANAGER_OPTIMIZATION:=LOW
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1336
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1337
    LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1338
				    lcdglyph.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1339
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1340
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1341
BUILD_LIBFONTMANAGER_CFLAGS_COMMON:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1342
			$(X_CFLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1343
			-DLE_STANDALONE -DHEADLESS \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1344
			$(FONT_HEADERS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1345
			-I$(JDK_TOPDIR)/src/share/native/sun/font \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1346
			-I$(JDK_TOPDIR)/src/share/native/sun/font/layout \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1347
			-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1348
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1349
			-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1350
			-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1351
			-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1352
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1353
			-I$(JDK_TOPDIR)/src/share/native/sun/java2d
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1354
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1355
# Turn off aliasing with GCC for ExtensionSubtables.cpp
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1356
ifeq ($(OPENJDK_TARGET_OS), linux)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1357
    BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS:=-fno-strict-aliasing
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1358
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1359
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1360
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1361
		LIBRARY:=fontmanager, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1362
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1363
                SRC:=$(JDK_TOPDIR)/src/share/native/sun/font\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1364
		     $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1365
		EXCLUDE_FILES:=$(LIBFONTMANAGER_EXCLUDE_FILES) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1366
			       AccelGlyphCache.c,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1367
		LANG:=C++,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1368
		CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1369
		CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1370
		OPTIMIZATION:=$(LIBFONTMANAGER_OPTIMIZATION), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1371
		CFLAGS_windows= -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1372
				-DCC_NOEX, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1373
		MAPFILE:=$(BUILD_LIBFONTMANAGER_MAPFILE), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1374
		LDFLAGS:=$(subst -Xlinker -z -Xlinker defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1375
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1376
		LDFLAGS_SUFFIX:=$(BUILD_LIBFONTMANAGER_FONTLIB),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1377
		LDFLAGS_SUFFIX_linux:=-lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1378
		LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt -lc $(LIBM) $(LIBCXX) -ljava -ljvm,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1379
		LDFLAGS_SUFFIX_macosx:=-lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1380
				       -ljava -ljvm,\
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1381
		LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1382
					$(WIN_AWT_LIB),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1383
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1384
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1385
			  -D "JDK_FNAME=fontmanager.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1386
			  -D "JDK_INTERNAL_NAME=fontmanager" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1387
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1388
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfontmanager,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1389
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1390
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1391
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1392
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1393
ifneq (,$(findstring $(OPENJDK_TARGET_OS),solaris macosx))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1394
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT_XAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1395
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1396
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1397
BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1398
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1399
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1400
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1401
ifndef OPENJDK
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1402
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1403
#    ifeq ($(OPENJDK_TARGET_OS), linux)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1404
#        ifeq ("$(CC_VER_MAJOR)", "3")
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1405
#            OTHER_LDLIBS  += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1406
#        endif                           
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1407
#    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1408
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1409
# The resulting size of the t2k lib file is (at least on linux) dependant on the order of 
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1410
# the input .o files. Because of this the new build will differ in size to the old build.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1411
    BUILD_LIBT2K_CFLAGS_COMMON:=-I$(JDK_TOPDIR)/src/share/native/sun/font \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1412
		            -I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1413
		            -I$(JDK_TOPDIR)/src/closed/share/native/sun/font \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1414
		            -I$(JDK_TOPDIR)/src/share/share/native/sun/font \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1415
		            -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1416
		            -I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1417
		            -I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1418
		            -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1419
		            -I$(JDK_TOPDIR)/src/share/native/sun/java2d
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1420
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1421
    $(eval $(call SetupNativeCompilation,BUILD_LIBT2K,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1422
                LIBRARY:=t2k, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1423
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1424
                SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/font \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1425
		     $(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1426
		     $(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k/ttHints,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1427
		EXCLUDE_FILES:=orion.c,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1428
		LANG:=C++,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1429
		OPTIMIZATION:=HIGH, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1430
		CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1431
		CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1432
		CFLAGS_windows=-DCC_NOEX, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1433
		CXXFLAGS_windows=-DCC_NOEX, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1434
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libt2k/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1435
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1436
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1437
		LDFLAGS_windows:=user32.lib $(JDK_OUTPUTDIR)/objs/libfontmanager/fontmanager.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1438
		LDFLAGS_SUFFIX_posix:=$(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1439
		LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1440
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1441
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1442
			  -D "JDK_FNAME=t2k.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1443
			  -D "JDK_INTERNAL_NAME=t2k" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1444
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1445
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libt2k,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1446
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1447
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1448
    # t2k is linked against fontmanager
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1449
    $(BUILD_LIBT2K) : $(BUILD_LIBFONTMANAGER)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1450
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1451
    BUILD_LIBRARIES += $(BUILD_LIBT2K)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1452
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1453
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1454
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1455
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1456
ifeq ($(OPENJDK_TARGET_OS), windows)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1457
    ifeq ($(OPENJDK_TARGET_CPU), x86)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1458
        KERNEL32_LIB:=kernel32.lib
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1459
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1460
    $(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1461
                LIBRARY:=jawt, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1462
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1463
                SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1464
		INCLUDE_FILES:=jawt.cpp,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1465
		LANG:=C++,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1466
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1467
		CFLAGS:=$(CXXFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1468
			-EHsc -DUNICODE -D_UNICODE \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1469
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1470
		        -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1471
		        -I$(JDK_TOPDIR)/src/share/native/sun/java2d \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1472
			-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
15883
f57291ffafbf 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
erikj
parents: 15676
diff changeset
  1473
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows \
f57291ffafbf 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
erikj
parents: 15676
diff changeset
  1474
			-I$(DXSDK_INCLUDE_PATH), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1475
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(KERNEL32_LIB) $(LDFLAGS_CXX_JDK) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1476
			 advapi32.lib $(WIN_AWT_LIB),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1477
		LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1478
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1479
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1480
			  -D "JDK_FNAME=jawt.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1481
			  -D "JDK_INTERNAL_NAME=jawt" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1482
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1483
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1484
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1485
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1486
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1487
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1488
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1489
	$(ECHO) Copying $(@F)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1490
	$(CP) $(JDK_OUTPUTDIR)/objs/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1491
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1492
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1493
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1494
else # OPENJDK_TARGET_OS not windows
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1495
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1496
    JAWT_LIBS:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1497
    ifneq ($(OPENJDK_TARGET_OS), solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1498
        JAWT_LIBS += -lawt
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1499
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1500
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1501
    ifndef BUILD_HEADLESS_ONLY
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1502
        JAWT_LIBS += -lawt_xawt
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1503
    else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1504
        JAWT_LIBS += -lawt_headless
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1505
        HEADLESS_CFLAG += -DHEADLESS
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1506
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1507
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1508
    JAWT_FILES:=jawt.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1509
    ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1510
	JAWT_FILES:=jawt.m
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1511
	JAWT_LIBS:=-lawt_lwawt
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1512
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1513
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1514
    $(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1515
                LIBRARY:=jawt, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1516
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1517
                SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1518
                     $(JDK_TOPDIR)/src/macosx/native/sun/awt,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1519
		INCLUDE_FILES:=$(JAWT_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1520
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1521
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1522
		CFLAGS:=$(CFLAGS_JDKLIB), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1523
		CFLAGS_linux:=$(HEADLESS_CFLAG),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1524
		CFLAGS_macosx:=-I$(JDK_TOPDIR)/src/solaris/native/sun/awt ,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1525
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjawt/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1526
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1527
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1528
		LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1529
		LDFLAGS_SUFFIX_linux:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1530
		LDFLAGS_SUFFIX_solaris:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1531
		LDFLAGS_SUFFIX_macosx:=-Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1532
				       -framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX),\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1533
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1534
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1535
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1536
ifndef BUILD_HEADLESS_ONLY
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1537
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT_XAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1538
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1539
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1540
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1541
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1542
ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1543
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1544
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1545
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1546
endif # OPENJDK_TARGET_OS
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1547
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1548
BUILD_LIBRARIES += $(BUILD_LIBJAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1549
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1550
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1551
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1552
LIBINSTRUMENT_SRC   :=$(JDK_TOPDIR)/src/share/instrument \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1553
                      $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1554
                      $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1555
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1556
LIBINSTRUMENT_FILES :=\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1557
	EncodingSupport.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1558
	EncodingSupport_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1559
	FileSystemSupport_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1560
	InstrumentationImplNativeMethods.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1561
	InvocationAdapter.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1562
	JarFacade.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1563
	JPLISAgent.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1564
	JPLISAssert.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1565
	JavaExceptions.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1566
	PathCharsValidator.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1567
	Reentrancy.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1568
	Utilities.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1569
	canonicalize_md.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1570
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1571
LIBINSTRUMENT_DIR   :=$(JDK_OUTPUTDIR)/objs/libinstrument
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1572
LIBINSTRUMENT_CFLAGS:=$(CFLAGS_JDKLIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1573
                      -I$(JDK_TOPDIR)/src/share/instrument \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1574
                      -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1575
                      -I$(JDK_TOPDIR)/src/share/bin
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1576
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1577
LIBINSTRUMENT_LDFLAGS:=
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1578
LIBINSTRUMENT_LDFLAGS_SUFFIX:=
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1579
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1580
ifeq ($(OPENJDK_TARGET_OS), windows)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1581
    LIBINSTRUMENT_LDFLAGS += $(JDK_OUTPUTDIR)/objs/jli_static.lib $(WIN_JAVA_LIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1582
				 -export:Agent_OnAttach advapi32.lib
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1583
    # Statically link the C runtime so that there are not dependencies on modules 
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1584
    # not on the search patch when invoked from the Windows system directory 
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1585
    # (or elsewhere).
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1586
    LIBINSTRUMENT_CFLAGS := $(filter-out -MD,$(LIBINSTRUMENT_CFLAGS))
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1587
    # equivalent of strcasecmp is stricmp on Windows
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1588
    LIBINSTRUMENT_CFLAGS += -Dstrcasecmp=stricmp
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1589
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1590
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1591
$(eval $(call SetupNativeCompilation,BUILD_LIBINSTRUMENT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1592
		LIBRARY:=instrument, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1593
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1594
		SRC:=$(LIBINSTRUMENT_SRC),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1595
		INCLUDE_FILES:=$(LIBINSTRUMENT_FILES),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1596
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1597
		OPTIMIZATION:=LOW, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1598
		CFLAGS:=$(LIBINSTRUMENT_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1599
		CFLAGS_debug:=-DJPLIS_LOGGING,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1600
		CFLAGS_release:=-DNO_JPLIS_LOGGING,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1601
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libinstrument/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1602
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1603
			 $(call SET_SHARED_LIBRARY_ORIGIN) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1604
                         $(LIBINSTRUMENT_LDFLAGS),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1605
		LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/jli),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1606
		LDFLAGS_solaris:= $(call SET_SHARED_LIBRARY_ORIGIN,/jli),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1607
		LDFLAGS_macosx:=-Xlinker -all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1608
				-framework Cocoa -framework Security -framework ApplicationServices,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1609
		LDFLAGS_SUFFIX:=$(LIBINSTRUMENT_LDFLAGS_SUFFIX),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1610
		LDFLAGS_SUFFIX_macosx:=-liconv $(LIBZ),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1611
		LDFLAGS_SUFFIX_solaris:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL) -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1612
		LDFLAGS_SUFFIX_linux:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1613
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1614
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1615
			  -D "JDK_FNAME=instrument.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1616
			  -D "JDK_INTERNAL_NAME=instrument" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1617
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1618
		OBJECT_DIR:=$(LIBINSTRUMENT_DIR),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1619
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1620
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1621
ifneq (,$(findstring $(OPENJDK_TARGET_OS), macosx windows))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1622
$(BUILD_LIBINSTRUMENT) : $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)jli_static$(STATIC_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1623
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1624
$(BUILD_LIBINSTRUMENT) : $(INSTALL_LIBRARIES_HERE)/jli/$(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1625
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1626
$(BUILD_LIBINSTRUMENT) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1627
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1628
BUILD_LIBRARIES += $(BUILD_LIBINSTRUMENT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1629
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1630
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1631
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1632
BUILD_LIBMANAGEMENT_SRC:=$(JDK_TOPDIR)/src/share/native/sun/management \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1633
                           $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/management \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1634
                           $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/management
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1635
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1636
BUILD_LIBMANAGEMENT_EXCLUDES:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1637
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1638
BUILD_LIBMANAGEMENT_CFLAGS:=-I$(JDK_TOPDIR)/src/share/native/sun/management
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1639
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1640
ifneq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1641
	BUILD_LIBMANAGEMENT_EXCLUDES += OperatingSystem_md.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1642
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1643
	BUILD_LIBMANAGEMENT_EXCLUDES += UnixOperatingSystem_md.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1644
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1645
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1646
ifneq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1647
	BUILD_LIBMANAGEMENT_EXCLUDES += SolarisOperatingSystem.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1648
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1649
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1650
ifneq ($(OPENJDK_TARGET_OS),linux)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1651
	BUILD_LIBMANAGEMENT_EXCLUDES += LinuxOperatingSystem.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1652
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1653
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1654
ifneq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1655
	BUILD_LIBMANAGEMENT_EXCLUDES += MacosxOperatingSystem.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1656
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1657
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1658
LIBMANAGEMENT_OPTIMIZATION:=HIGH
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1659
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),)
14707
511b222f99b2 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14706
diff changeset
  1660
    ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1661
        LIBMANAGEMENT_OPTIMIZATION:=LOW
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1662
    endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1663
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1664
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1665
$(eval $(call SetupNativeCompilation,BUILD_LIBMANAGEMENT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1666
		LIBRARY:=management,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1667
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1668
		SRC:=$(BUILD_LIBMANAGEMENT_SRC),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1669
		EXCLUDE_FILES:=$(BUILD_LIBMANAGEMENT_EXCLUDES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1670
		LANG:=C,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1671
		OPTIMIZATION:=$(LIBMANAGEMENT_OPTIMIZATION), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1672
		CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBMANAGEMENT_CFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1673
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmanagement/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1674
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1675
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1676
		LDFLAGS_solaris:=-lkstat,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1677
		LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1678
		LDFLAGS_SUFFIX_windows:=jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1679
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1680
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1681
			  -D "JDK_FNAME=management.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1682
			  -D "JDK_INTERNAL_NAME=management" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1683
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1684
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmanagement,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1685
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1686
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1687
$(BUILD_LIBMANAGEMENT) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1688
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1689
BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1690
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1691
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1692
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1693
BUILD_LIBHPROF_SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1694
BUILD_LIBHPROF_CFLAGS:=-I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1695
                         -I$(JDK_TOPDIR)/src/share/npt \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1696
                         -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1697
                         -I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1698
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1699
BUILD_LIBHPROF_LDFLAGS:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1700
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1701
LIBHPROF_OPTIMIZATION:=HIGHEST
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1702
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),)
14707
511b222f99b2 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14706
diff changeset
  1703
    ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1704
        LIBHPROF_OPTIMIZATION:=LOW
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1705
    endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1706
endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1707
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1708
$(eval $(call SetupNativeCompilation,BUILD_LIBHPROF,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1709
		LIBRARY:=hprof, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1710
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1711
		SRC:=$(BUILD_LIBHPROF_SRC),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1712
		LANG:=C,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1713
		OPTIMIZATION:=$(LIBHPROF_OPTIMIZATION), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1714
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1715
                         $(BUILD_LIBHPROF_CFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1716
		CFLAGS_debug:=-DHPROF_LOGGING,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1717
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1718
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1719
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1720
		LDFLAGS_windows:=wsock32.lib winmm.lib advapi32.lib,\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1721
		LDFLAGS_SUFFIX_linux:=$(LIBDL),\
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1722
		LDFLAGS_SUFFIX_macosx:=$(LIBDL),\
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1723
		LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl $(LIBDL) -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1724
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1725
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1726
			  -D "JDK_FNAME=hprof.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1727
			  -D "JDK_INTERNAL_NAME=hprof" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1728
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1729
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libhprof_jvmti,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1730
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1731
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1732
BUILD_LIBRARIES += $(BUILD_LIBHPROF)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1733
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1734
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1735
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1736
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA_CRW_DEMO,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1737
		LIBRARY:=java_crw_demo, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1738
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1739
		SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1740
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1741
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1742
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1743
                        -I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1744
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava_crw_demo/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1745
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1746
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  1747
		LDFLAGS_SUFFIX_solaris:=-lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1748
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1749
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1750
			  -D "JDK_FNAME=java_crw_demo.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1751
			  -D "JDK_INTERNAL_NAME=java_crw_demo" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1752
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1753
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava_crw_demo,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1754
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1755
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1756
BUILD_LIBRARIES += $(BUILD_LIBJAVA_CRW_DEMO)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1757
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1758
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1759
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1760
$(eval $(call SetupNativeCompilation,BUILD_LIBNPT,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1761
		LIBRARY:=npt, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1762
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1763
		SRC:=$(JDK_TOPDIR)/src/share/npt $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1764
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1765
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1766
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1767
                        -I$(JDK_TOPDIR)/src/share/npt \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1768
                        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1769
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnpt/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1770
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1771
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1772
		LDFLAGS_macosx:=-liconv,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1773
		LDFLAGS_SUFFIX_windows:=-export:nptInitialize -export:nptTerminate,\
14344
a5537423264b 8002220: build-infra: update for mac, solaris 11 issues
erikj
parents: 14235
diff changeset
  1774
		LDFLAGS_SUFFIX_solaris:=-lc, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1775
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1776
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1777
			  -D "JDK_FNAME=npt.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1778
			  -D "JDK_INTERNAL_NAME=npt" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1779
			  -D "JDK_FTYPE=0x2L",\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1780
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnpt,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1781
		DEBUG_SYMBOLS:=true))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1782
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1783
BUILD_LIBRARIES += $(BUILD_LIBNPT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1784
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1785
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1786
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1787
LIBNET_SRC_DIRS:=$(JDK_TOPDIR)/src/share/native/java/net \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1788
                   $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1789
                   $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/dns \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1790
                   $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/spi
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1791
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1792
ifeq ($(OPENJDK_TARGET_OS),windows)
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1793
    LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/www/protocol/http/ntlm
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1794
else
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1795
    LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/sdp
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1796
endif
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1797
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1798
LIBNET_CFLAGS:=$(foreach dir,$(LIBNET_SRC_DIRS),-I$(dir))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1799
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1800
LIBNET_EXCLUDE_FILES:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1801
ifneq ($(OPENJDK_TARGET_OS),linux)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1802
	LIBNET_EXCLUDE_FILES += linux_close.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1803
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1804
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1805
ifneq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1806
	LIBNET_EXCLUDE_FILES += bsd_close.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1807
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1808
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1809
ifeq ($(OPENJDK_TARGET_OS),windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1810
	LIBNET_EXCLUDE_FILES += PlainSocketImpl.c PlainDatagramSocketImpl.c SdpSupport.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1811
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1812
	LIBNET_EXCLUDE_FILES += TwoStacksPlainSocketImpl.c DualStackPlainSocketImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1813
                                TwoStacksPlainDatagramSocketImpl.c DualStackPlainDatagramSocketImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1814
				NTLMAuthSequence.c NetworkInterface_winXP.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1815
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1816
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1817
$(eval $(call SetupNativeCompilation,BUILD_LIBNET,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1818
		LIBRARY:=net,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1819
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1820
		SRC:=$(LIBNET_SRC_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1821
		EXCLUDE_FILES:=$(LIBNET_EXCLUDE_FILES), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1822
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1823
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1824
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1825
                        $(LIBNET_CFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1826
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnet/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1827
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1828
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1829
		LDFLAGS_SUFFIX_macosx:=-ljvm -ljava,\
14344
a5537423264b 8002220: build-infra: update for mac, solaris 11 issues
erikj
parents: 14235
diff changeset
  1830
		LDFLAGS_SUFFIX_solaris:=-ljvm -ljava -lnsl -lsocket $(LIBDL) -lc ,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1831
		LDFLAGS_SUFFIX_linux:=$(LIBDL) -ljvm -lpthread -ljava,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1832
		LDFLAGS_SUFFIX_windows:=ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1833
					delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1834
					-DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1835
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1836
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1837
			  -D "JDK_FNAME=net.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1838
			  -D "JDK_INTERNAL_NAME=net" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1839
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1840
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnet,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1841
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1842
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1843
$(BUILD_LIBNET) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1844
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1845
BUILD_LIBRARIES += $(BUILD_LIBNET)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1846
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1847
$(JDK_OUTPUTDIR)/lib/net.properties: $(JDK_TOPDIR)/src/share/lib/net.properties
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1848
	$(ECHO) $(LOG_INFO) Copying $(@F)
16636
1cc691bcfe50 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents: 16513
diff changeset
  1849
	$(call install-file)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1850
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1851
COPY_FILES += $(JDK_OUTPUTDIR)/lib/net.properties
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1852
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1853
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1854
$(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template : $(JDK_TOPDIR)/src/${OPENJDK_TARGET_OS_API_DIR}/lib/sdp/sdp.conf.template
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1855
	$(ECHO) $(LOG_INFO) Copying $(@F)
16636
1cc691bcfe50 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents: 16513
diff changeset
  1856
	$(call install-file)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1857
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1858
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1859
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1860
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1861
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1862
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1863
BUILD_LIBNIO_SRC:=\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1864
        $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/nio \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1865
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1866
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/fs
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1867
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1868
BUILD_LIBNIO_CFLAGS:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1869
	-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1870
	-I$(JDK_TOPDIR)/src/share/native/java/io \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1871
	-I$(JDK_TOPDIR)/src/share/native/java/net \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1872
        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1873
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1874
BUILD_LIBNIO_FILES:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1875
        DatagramChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1876
        DatagramDispatcher.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1877
	FileChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1878
	FileDispatcherImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1879
	FileKey.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1880
	IOUtil.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1881
        MappedByteBuffer.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1882
	Net.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1883
	ServerSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1884
	SocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1885
	SocketDispatcher.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1886
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1887
ifeq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1888
	BUILD_LIBNIO_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1889
		Iocp.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1890
		RegistryFileTypeDetector.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1891
		WindowsAsynchronousFileChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1892
		WindowsAsynchronousServerSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1893
		WindowsAsynchronousSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1894
		WindowsNativeDispatcher.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1895
	        WindowsSelectorImpl.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1896
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1897
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1898
ifeq ($(OPENJDK_TARGET_OS), linux)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1899
	BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1900
	BUILD_LIBNIO_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1901
		EPoll.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1902
		EPollArrayWrapper.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1903
		EPollPort.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1904
		InheritedChannel.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1905
		NativeThread.c \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1906
		PollArrayWrapper.c \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1907
		UnixAsynchronousServerSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1908
		UnixAsynchronousSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1909
		GnomeFileTypeDetector.c \
14702
111342b28e67 7142921: (fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
dxu
parents: 14526
diff changeset
  1910
		MagicFileTypeDetector.c \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1911
		LinuxNativeDispatcher.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1912
		LinuxWatchService.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1913
		UnixCopyFile.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1914
		UnixNativeDispatcher.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1915
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1916
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1917
ifeq ($(OPENJDK_TARGET_OS), macosx)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1918
	BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1919
	BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1920
	BUILD_LIBNIO_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1921
		InheritedChannel.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1922
		NativeThread.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1923
	        PollArrayWrapper.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1924
		UnixAsynchronousServerSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1925
		UnixAsynchronousSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1926
		BsdNativeDispatcher.c \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1927
		MacOSXNativeDispatcher.c \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1928
		UnixCopyFile.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1929
		UnixNativeDispatcher.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1930
		KQueue.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1931
		KQueuePort.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1932
		KQueueArrayWrapper.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1933
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1934
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1935
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1936
	BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1937
	BUILD_LIBNIO_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1938
		DevPollArrayWrapper.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1939
		InheritedChannel.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1940
		NativeThread.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1941
		PollArrayWrapper.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1942
		SolarisEventPort.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1943
		UnixAsynchronousServerSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1944
		UnixAsynchronousSocketChannelImpl.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1945
		GnomeFileTypeDetector.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1946
		SolarisNativeDispatcher.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1947
		SolarisWatchService.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1948
		UnixCopyFile.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1949
		UnixNativeDispatcher.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1950
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1951
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1952
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1953
		LIBRARY:=nio,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1954
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1955
		SRC:=$(BUILD_LIBNIO_SRC),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1956
		INCLUDE_FILES:=$(BUILD_LIBNIO_FILES), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1957
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1958
		OPTIMIZATION:=HIGH, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1959
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1960
                        $(BUILD_LIBNIO_CFLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1961
		MAPFILE:=$(BUILD_LIBNIO_MAPFILE), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1962
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1963
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1964
		LDFLAGS_SUFFIX_linux:=-ljava -lnet -lpthread $(LIBDL),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1965
		LDFLAGS_SUFFIX_solaris:=-ljvm -lsocket -lposix4 $(LIBDL) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1966
				        -lsendfile -ljava -lnet -lc,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1967
		LDFLAGS_SUFFIX_windows:=jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1968
					$(JDK_OUTPUTDIR)/objs/libnet/net.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1969
					advapi32.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1970
		LDFLAGS_SUFFIX_macosx:=-ljava -lnet -pthread -framework CoreFoundation,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1971
		LDFLAGS_SUFFIX:=,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1972
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1973
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1974
			  -D "JDK_FNAME=nio.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1975
			  -D "JDK_INTERNAL_NAME=nio" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  1976
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1977
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnio,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  1978
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1979
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1980
BUILD_LIBRARIES += $(BUILD_LIBNIO)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1981
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1982
$(BUILD_LIBNIO) : $(BUILD_LIBNET)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1983
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1984
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1985
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1986
ifeq ($(OPENJDK_TARGET_OS_API),posix)
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  1987
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1988
  ifneq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1989
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1990
    SCTP_WERROR := -Werror
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1991
    ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1992
      SCTP_WERROR :=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1993
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1994
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1995
    $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1996
                LIBRARY:=sctp,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1997
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  1998
                SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  1999
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2000
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2001
		CFLAGS:=$(CFLAGS_JDKLIB)\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2002
			-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2003
			-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2004
			-I$(JDK_TOPDIR)/src/share/native/java/net \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2005
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2006
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2007
		CFLAGS_linux:=$(SCTP_WERROR),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2008
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsctp/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2009
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2010
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2011
		LDFLAGS_SUFFIX_linux:=-lpthread $(LIBDL) -ljava -ljvm,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2012
		LDFLAGS_SUFFIX_posix:=-lnio -lnet,\
14344
a5537423264b 8002220: build-infra: update for mac, solaris 11 issues
erikj
parents: 14235
diff changeset
  2013
		LDFLAGS_SUFFIX_solaris:=-lsocket -ljava -ljvm -lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2014
		LDFLAGS_SUFFIX_macosx:=-ljava -ljvm,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2015
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2016
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2017
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2018
    BUILD_LIBRARIES += $(BUILD_LIBSCTP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2019
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2020
    $(BUILD_LIBSCTP) : $(BUILD_LIBNIO)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2021
  endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2022
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2023
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2024
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2025
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2026
BUILD_LIBJLI_SRC_DIRS:=$(JDK_TOPDIR)/src/share/bin $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2027
LIBJLI_CFLAGS:=$(CFLAGS_JDKLIB) $(foreach dir,$(BUILD_LIBJLI_SRC_DIRS),-I$(dir))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2028
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2029
BUILD_LIBJLI_FILES:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2030
	java.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2031
	splashscreen_stubs.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2032
	parse_manifest.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2033
	version_comp.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2034
	wildcard.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2035
	jli_util.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2036
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2037
ifeq ($(JVM_VARIANT_ZERO), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2038
	ERGO_FAMILY:=zero
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2039
else
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2040
	ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2041
		ERGO_FAMILY:=i586
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2042
	else
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2043
		ERGO_FAMILY:=$(OPENJDK_TARGET_CPU_ARCH)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2044
	endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2045
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2046
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2047
ifeq ($(OPENJDK_TARGET_OS), macosx)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2048
	LIBJLI_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/bin
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2049
	BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/bin
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2050
	BUILD_LIBJLI_FILES += java_md_common.c java_md_macosx.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2051
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2052
	BUILD_LIBJLI_java_md_macosx.c_CFLAGS:=-x objective-c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2053
	BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS:=-x objective-c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2054
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2055
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2056
ifeq ($(OPENJDK_TARGET_OS), windows)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2057
	BUILD_LIBJLI_FILES += java_md.c \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2058
			      cmdtoargs.c
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2059
        # Staticically link with c runtime on windows.
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2060
	LIBJLI_CFLAGS:=$(filter-out -MD,$(LIBJLI_CFLAGS))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2061
else ifneq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2062
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2063
	BUILD_LIBJLI_FILES += java_md_common.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2064
	BUILD_LIBJLI_FILES += java_md_solinux.c ergo.c 
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2065
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2066
	ERGO_ARCH_FILE = ergo_$(ERGO_FAMILY).c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2067
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2068
        # if the architecture specific ergo file exists then
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2069
        # use it, else use the generic definitions from ergo.c
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2070
	ifneq ($(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(ERGO_ARCH_FILE)),)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2071
		BUILD_LIBJLI_FILES += $(ERGO_ARCH_FILE)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2072
	else # !ERGO_ARCH_FILE
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2073
		LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2074
	endif # ERGO_ARCH_FILE
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2075
endif #WINDOWS
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2076
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2077
# Append defines depending on target platform
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2078
LIBJLI_CFLAGS += $(OPENJDK_TARGET_CPU_JLI_CFLAGS)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2079
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2080
ifeq ($(OPENJDK_TARGET_OS), macosx)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2081
	LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2082
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2083
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2084
ifneq ($(USE_EXTERNAL_LIBZ),true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2085
	BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2086
	LIBJLI_CFLAGS += $(ZLIB_CPPFLAGS)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2087
	BUILD_LIBJLI_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2088
		inflate.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2089
		inftrees.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2090
		inffast.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2091
		zadler32.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2092
		zcrc32.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2093
		zutil.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2094
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2095
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2096
ifeq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2097
    LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2098
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2099
    LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE)/jli
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2100
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2101
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2102
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2103
		LIBRARY:=jli,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2104
                OUTPUT_DIR:=$(LIBJLI_OUTPUT_DIR),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2105
		SRC:=$(BUILD_LIBJLI_SRC_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2106
		INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2107
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2108
		OPTIMIZATION:=HIGH, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2109
		CFLAGS:=$(LIBJLI_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2110
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjli/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2111
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2112
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2113
		LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2114
		LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2115
		LDFLAGS_macosx:=-framework Cocoa -framework Security -framework ApplicationServices,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2116
		LDFLAGS_SUFFIX_solaris:=$(LIBZ) $(LIBDL) -lc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2117
		LDFLAGS_SUFFIX_linux:=$(LIBZ) $(LIBDL) -lc -lpthread,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2118
		LDFLAGS_SUFFIX_macosx:=$(LIBZ),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2119
		LDFLAGS_SUFFIX_windows:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2120
			-export:JLI_Launch \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2121
			-export:JLI_ManifestIterate \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2122
			-export:JLI_SetTraceLauncher \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2123
			-export:JLI_ReportErrorMessage \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2124
			-export:JLI_ReportErrorMessageSys \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2125
			-export:JLI_ReportMessage \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2126
			-export:JLI_ReportExceptionDescription \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2127
			-export:JLI_MemAlloc \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2128
			-export:JLI_CmdToArgs \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2129
			-export:JLI_GetStdArgc \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2130
			-export:JLI_GetStdArgs \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2131
			advapi32.lib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2132
			comctl32.lib \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2133
			user32.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2134
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2135
		RC_FLAGS:=$(RC_FLAGS) \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2136
			  -D "JDK_FNAME=jli.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2137
			  -D "JDK_INTERNAL_NAME=jli" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2138
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2139
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2140
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2141
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2142
BUILD_LIBRARIES += $(BUILD_LIBJLI)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2143
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2144
# On windows, the static library has the same suffix as the import library created by
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2145
# with the shared library, so the static library is given a different name. No harm
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2146
# in doing it for all platform to reduce complexity.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2147
ifeq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2148
    $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2149
		STATIC_LIBRARY:=jli_static,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2150
                OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2151
		SRC:=$(BUILD_LIBJLI_SRC_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2152
		INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2153
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2154
		OPTIMIZATION:=HIGH, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2155
		CFLAGS:=$(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2156
		ARFLAGS:=$(ARFLAGS),\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2157
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2158
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2159
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2160
BUILD_LIBRARIES += $(BUILD_LIBJLI_STATIC)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2161
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2162
else ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2163
    #
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2164
    # On macosx they do partial (incremental) linking of libjli_static.a
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2165
    #   code it here...rather than add support to NativeCompilation
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2166
    #   as this is first time I see it
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2167
    $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2168
		LIBRARY:=jli_static, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2169
                OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2170
		SRC:=$(BUILD_LIBJLI_SRC_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2171
		INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2172
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2173
		OPTIMIZATION:=HIGH, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2174
		CFLAGS:=$(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2175
		LDFLAGS:=-nostdlib -r,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2176
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2177
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2178
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2179
$(JDK_OUTPUTDIR)/objs/libjli_static.a : $(BUILD_LIBJLI_STATIC)
16636
1cc691bcfe50 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents: 16513
diff changeset
  2180
	$(call install-file)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2181
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2182
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/objs/libjli_static.a
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2183
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2184
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2185
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2186
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2187
ifndef OPENJDK
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2188
ifeq ($(ENABLE_JFR), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2189
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2190
$(eval $(call SetupNativeCompilation,BUILD_LIBJFR,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2191
		LIBRARY:=jfr,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2192
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2193
		SRC:=$(JDK_TOPDIR)/src/closed/share/native/oracle/jfr,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2194
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2195
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2196
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2197
                        -I$(JDK_TOPDIR)/src/closed/share/javavm/export, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2198
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjfr/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2199
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2200
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
15676
291a66e841c2 8008294: build-infra: Build-infra closed fails on solaris 11.1
erikj
parents: 15334
diff changeset
  2201
		LDFLAGS_SUFFIX_solaris:=-lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2202
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2203
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2204
			  -D "JDK_FNAME=jfr.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2205
			  -D "JDK_INTERNAL_NAME=jfr" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2206
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2207
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjfr,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2208
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2209
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2210
BUILD_LIBRARIES += $(BUILD_LIBJFR)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2211
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2212
endif
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2213
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2214
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2215
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2216
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2217
ifndef OPENJDK
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2218
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2219
BUILD_LIBKCMS_EXCLUDE_FILES:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2220
ifeq ($(OPENJDK_TARGET_OS),windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2221
	BUILD_LIBKCMS_EXCLUDE_FILES += ukcpmgr.c unixmem.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2222
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2223
	BUILD_LIBKCMS_EXCLUDE_FILES += cmmdll.c registry.c spxffile.c sysinfo.c winmem.c wkcpmgr.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2224
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2225
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2226
BUILD_LIBKCMS_FLAGS:=$(CFLAGS_JDKLIB)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2227
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2228
ifeq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2229
     # This particular library uses a feature called PIC_CODE_SMALL (on solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2230
     #   implement it like this...since it's only used here
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2231
     BUILD_LIBKCMS_FLAGS:=$(patsubst -KPIC,-Kpic,$(BUILD_LIBKCMS_FLAGS))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2232
else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2233
     BUILD_LIBKCMS_FLAGS:=$(patsubst -fPIC,-fpic,$(BUILD_LIBKCMS_FLAGS))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2234
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2235
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2236
$(eval $(call SetupNativeCompilation,BUILD_LIBKCMS,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2237
		LIBRARY:=kcms,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2238
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2239
		SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2240
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2241
		EXCLUDE_FILES:=$(BUILD_LIBKCMS_EXCLUDE_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2242
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2243
		CFLAGS:=$(BUILD_LIBKCMS_FLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2244
                        -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2245
		CFLAGS_linux:=-Wno-missing-field-initializers,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2246
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libkcms/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2247
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2248
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2249
		LDFLAGS_SUFFIX_linux:=-lc -lpthread,\
15676
291a66e841c2 8008294: build-infra: Build-infra closed fails on solaris 11.1
erikj
parents: 15334
diff changeset
  2250
		LDFLAGS_SUFFIX_solaris:=-lc,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2251
		LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \
14706
0651f78051e0 8004104: build-infra: Minor cleanup
erikj
parents: 14526
diff changeset
  2252
		LDFLAGS_SUFFIX_posix:=-lm -ljava -ljvm,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2253
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2254
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2255
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2256
			  -D "JDK_FNAME=kcms.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2257
			  -D "JDK_INTERNAL_NAME=kcms" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2258
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2259
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkcms,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2260
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2261
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2262
$(BUILD_LIBKCMS) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2263
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2264
BUILD_LIBRARIES += $(BUILD_LIBKCMS)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2265
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2266
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2267
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2268
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2269
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2270
ifndef OPENJDK
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2271
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2272
ifneq ($(OPENJDK_TARGET_CPU), x86_64)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2273
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2274
ifeq ($(shell if test "$(OS_VERSION_MAJOR)" -eq 5 -a "$(OS_VERSION_MINOR)" -le 10; then $(ECHO) ok; fi), ok)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2275
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2276
SUNWJDGA_MAPFILE:=
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2277
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2278
	SUNWJDGA_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdga/mapfile-vers
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2279
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2280
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2281
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNWJDGA, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2282
		LIBRARY:=sunwjdga,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2283
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2284
		SRC:=$(JDK_TOPDIR)/src/solaris/native/sun/jdga, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2285
		LANG:=C, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2286
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2287
		CFLAGS:=$(CFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2288
			-I$(JDK_TOPDIR)/src/share/javavm/export \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2289
			-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2290
			-I$(OPENWIN_HOME)/include, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2291
		MAPFILE:=$(SUNWJDGA_MAPFILE), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2292
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2293
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2294
		LDFLAGS_SUFFIX:=-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2295
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2296
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2297
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2298
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2299
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2300
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2301
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2302
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2303
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2304
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2305
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2306
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2307
ifeq ($(BUILD_HEADLESS), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2308
ifneq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2309
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2310
LIBAWT_HEADLESS_DIRS:=$(JDK_TOPDIR)/src/share/native/sun/font \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2311
                        $(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2312
			$(JDK_TOPDIR)/src/solaris/native/sun/font \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2313
			$(JDK_TOPDIR)/src/solaris/native/sun/awt \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2314
			$(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2315
			$(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2316
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2317
LIBAWT_HEADLESS_CFLAGS:=-DHEADLESS=true \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2318
                          -DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2319
			  $(CUPS_CFLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2320
			  $(X_CFLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2321
			  -I$(JDK_TOPDIR)/src/share/native/sun/java2d \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2322
			  -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2323
			  -I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2324
			  -I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2325
			  -I$(JDK_TOPDIR)/src/share/native/sun/awt/image \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2326
			  -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2327
			  -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2328
			  -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2329
                          $(foreach dir,$(LIBAWT_HEADLESS_DIRS),-I$(dir))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2330
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2331
LIBAWT_HEADLESS_FILES:=\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2332
	awt_Font.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2333
	HeadlessToolkit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2334
	fontpath.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2335
	VDrawingArea.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2336
	X11Color.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2337
	X11Renderer.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2338
	X11PMBlitLoops.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2339
	X11SurfaceData.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2340
	X11FontScaler_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2341
	X11TextRenderer_md.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2342
        OGLBlitLoops.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2343
        OGLBufImgOps.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2344
        OGLContext.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2345
        OGLFuncs.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2346
        OGLMaskBlit.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2347
        OGLMaskFill.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2348
        OGLPaints.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2349
        OGLRenderQueue.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2350
        OGLRenderer.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2351
        OGLSurfaceData.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2352
        OGLTextRenderer.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2353
        OGLVertexCache.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2354
        GLXGraphicsConfig.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2355
        GLXSurfaceData.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2356
        AccelGlyphCache.c \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2357
	CUPSfuncs.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2358
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2359
LIBAWT_HEADLESS_REORDER:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2360
ifeq ($(OPENJDK_TARGET_OS), solaris)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2361
	ifneq ($(OPENJDK_TARGET_CPU), x86_64)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2362
		LIBAWT_HEADLESS_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2363
	endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2364
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2365
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2366
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2367
		LIBRARY:=awt_headless,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2368
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2369
		SRC:=$(LIBAWT_HEADLESS_DIRS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2370
		INCLUDE_FILES:=$(LIBAWT_HEADLESS_FILES),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2371
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2372
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2373
		CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2374
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/mapfile-vers,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2375
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2376
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2377
		LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2378
		LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2379
				 -R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2380
				 -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2381
		LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN).,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2382
		REORDER:=$(LIBAWT_HEADLESS_REORDER), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2383
		LDFLAGS_SUFFIX_linux:=-ljvm -lawt -lm $(LIBDL) -ljava,\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2384
		LDFLAGS_SUFFIX_solaris:=$(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc,\
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2385
		LDFLAGS_SUFFIX_macosx:=-ljvm $(LIBCXX) -lawt $(LIBDL) -ljava,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2386
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2387
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2388
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2389
$(BUILD_LIBAWT_HEADLESS) : $(BUILD_LIBAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2390
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2391
BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2392
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2393
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2394
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2395
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2396
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2397
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2398
ifndef BUILD_HEADLESS_ONLY
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2399
LIBSPLASHSCREEN_DIRS:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2400
	$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2401
	$(JDK_TOPDIR)/src/share/native/sun/awt/libpng \
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2402
	$(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2403
16512
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2404
ifeq ($(USE_EXTERNAL_LIBGIF),true)
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2405
    GIFLIB_LDFLAGS := -lgif
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2406
else
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2407
    LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/giflib
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2408
    GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2409
endif
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2410
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2411
ifneq ($(OPENJDK_TARGET_OS), macosx)
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2412
    LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2413
else
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2414
    LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2415
endif
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2416
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2417
LIBSPLASHSCREEN_CFLAGS:=-DSPLASHSCREEN -DPNG_NO_MMX_CODE \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2418
	$(foreach dir,$(LIBSPLASHSCREEN_DIRS),-I$(dir))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2419
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2420
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2421
	LIBSPLASHSCREEN_CFLAGS:=-I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2422
                                  $(LIBSPLASHSCREEN_CFLAGS) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2423
                                  -F/System/Library/Frameworks/JavaVM.framework/Frameworks
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2424
	LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2425
	LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2426
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2427
	LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS:=-x objective-c -O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2428
	LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS:=-x objective-c -O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2429
	LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS:=-x objective-c -O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2430
	LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS:=-x objective-c -O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2431
	LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS:=-x objective-c -O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2432
	LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS:=-x objective-c -O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2433
	LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS:=-O0
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2434
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2435
else ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2436
	LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2437
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2438
	LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2439
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2440
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2441
LIBSPLASHSCREEN_LDFLAGS_SUFFIX:=
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2442
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2443
ifneq ($(USE_EXTERNAL_LIBZ),true)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2444
	LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2445
	LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2446
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2447
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2448
ifeq ($(OPENJDK_TARGET_OS), macosx)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2449
	LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(LIBM) -lpthread -liconv -losxapp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2450
				  -framework ApplicationServices \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2451
				  -framework Foundation \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2452
				  -framework Cocoa \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2453
                                  -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2454
				  -framework JavaNativeFoundation
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2455
else ifneq ($(OPENJDK_TARGET_OS), windows)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2456
	LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2457
else # OPENJDK_TARGET_OS
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2458
	LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2459
endif # OPENJDK_TARGET_OS
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2460
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2461
$(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2462
		LIBRARY:=splashscreen,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2463
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2464
		SRC:=$(LIBSPLASHSCREEN_DIRS),\
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2465
		EXCLUDE_FILES:=imageioJPEG.c jpegdecoder.c pngtest.c,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2466
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2467
		OPTIMIZATION:=LOW, \
16512
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2468
		CFLAGS:=$(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) $(GIFLIB_CFLAGS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2469
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsplashscreen/mapfile-vers, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2470
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2471
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
16512
024da1ae4667 8011278: Allow using a system-installed giflib
omajid
parents: 16129
diff changeset
  2472
		LDFLAGS_SUFFIX:=$(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ) $(GIFLIB_LDFLAGS),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2473
		LDFLAGS_SUFFIX_solaris:=-lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2474
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2475
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2476
			  -D "JDK_FNAME=splashscreen.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2477
			  -D "JDK_INTERNAL_NAME=splashscreen" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2478
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2479
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsplashscreen,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2480
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2481
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2482
BUILD_LIBRARIES += $(LIBSPLASHSCREEN)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2483
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2484
ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2485
$(LIBSPLASHSCREEN) :  $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) 
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2486
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2487
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2488
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2489
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2490
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2491
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2492
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2493
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2494
LIBDCPR_SRC_DIRS:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2495
	$(JDK_TOPDIR)/src/closed/share/native/sun/dc/doe \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2496
	$(JDK_TOPDIR)/src/closed/share/native/sun/dc/path \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2497
	$(JDK_TOPDIR)/src/closed/share/native/sun/dc/pr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2498
	$(JDK_TOPDIR)/src/closed/share/native/sun/dc/util
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2499
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2500
LIBDCPR_CFLAGS:=$(foreach dir,$(LIBDCPR_SRC_DIRS),-I$(dir)) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2501
	          -I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2502
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2503
$(eval $(call SetupNativeCompilation,BUILD_LIBDCPR,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2504
		LIBRARY:=dcpr,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2505
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2506
		SRC:=$(LIBDCPR_SRC_DIRS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2507
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2508
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2509
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2510
			$(LIBDCPR_CFLAGS), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2511
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdcpr/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2512
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2513
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2514
		LDFLAGS_SUFFIX:=$(LIBM) $(LDFLAGS_JDKLIB_SUFFIX),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2515
		LDFLAGS_SUFFIX_posix:=-lm,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2516
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2517
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2518
			  -D "JDK_FNAME=dcpr.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2519
			  -D "JDK_INTERNAL_NAME=dcpr" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2520
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2521
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdcpr,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2522
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2523
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2524
$(BUILD_LIBDCPR) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2525
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2526
BUILD_LIBRARIES += $(BUILD_LIBDCPR)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2527
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2528
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2529
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2530
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2531
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2532
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PCSC,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2533
		LIBRARY:=j2pcsc,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2534
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2535
		SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2536
                     $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2537
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2538
		CFLAGS_posix:=-D__sun_jdk,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2539
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2540
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2541
                     -I$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2542
                     -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2543
                     -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2544
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2545
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2546
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2547
		LDFLAGS_SUFFIX_posix:=$(LIBDL), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2548
		LDFLAGS_SUFFIX_windows:=winscard.lib,\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2549
		LDFLAGS_SUFFIX_solaris:=-lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2550
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2551
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2552
			  -D "JDK_FNAME=j2pcsc.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2553
			  -D "JDK_INTERNAL_NAME=j2pcsc" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2554
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2555
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2556
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2557
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2558
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2559
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2560
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2561
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2562
ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2563
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2564
		LIBRARY:=j2gss,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2565
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2566
		SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2567
                     $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2568
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2569
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2570
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2571
                     -I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2572
                     -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2573
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2574
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2575
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2576
		LDFLAGS_SUFFIX:=$(LIBDL),\
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2577
		LDFLAGS_SUFFIX_solaris:=-lc,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2578
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2579
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2580
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2581
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2582
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2583
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2584
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2585
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2586
BUILD_LIBKRB5_NAME:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2587
ifeq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2588
     BUILD_LIBKRB5_NAME:=w2k_lsa_auth
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2589
     BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2590
     BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2591
			 gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2592
			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2593
else ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2594
     BUILD_LIBKRB5_NAME:=osxkrb5
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2595
     BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2596
     BUILD_LIBKRB5_LIBS:=-framework Kerberos
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2597
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2598
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2599
ifneq ($(BUILD_LIBKRB5_NAME),)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2600
$(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2601
		LIBRARY:=$(BUILD_LIBKRB5_NAME),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2602
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
14525
58044c98b2fb 8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents: 14524
diff changeset
  2603
		SRC:=$(BUILD_LIBKRB5_SRC),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2604
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2605
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2606
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2607
		        -I$(JDK_TOPDIR)/src/share/native/sun/security/krb5 \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2608
                        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 ,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2609
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2610
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2611
		LDFLAGS_SUFFIX:=$(BUILD_LIBKRB5_LIBS) ,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2612
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2613
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2614
			  -D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2615
			  -D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2616
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2617
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkrb5,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2618
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2619
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2620
BUILD_LIBRARIES += $(BUILD_LIBKRB5)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2621
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2622
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2623
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2624
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2625
ifeq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2626
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2627
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2628
		LIBRARY:=sunmscapi,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2629
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2630
		SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2631
		LANG:=C++,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2632
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2633
		CFLAGS:=$(CFLAGS_JDKLIB) \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2634
                        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi ,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2635
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2636
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2637
		LDFLAGS_SUFFIX:=Crypt32.Lib advapi32.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2638
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2639
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2640
			  -D "JDK_FNAME=sunmscapi.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2641
			  -D "JDK_INTERNAL_NAME=sunmscapi" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2642
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2643
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunmscapi,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2644
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2645
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2646
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2647
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2648
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2649
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2650
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2651
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2652
		LIBRARY:=j2pkcs11,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2653
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2654
		SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2655
                     $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2656
                     $(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2657
                     $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2658
		LANG:=C,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2659
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2660
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2661
		        -I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2662
		        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2663
		        -I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2664
                        -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2665
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pkcs11/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2666
		LDFLAGS:=$(LDFLAGS_JDKLIB) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2667
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
14426
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2668
		LDFLAGS_SUFFIX_posix:=$(LIBDL),\
2f6942e2316a 8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents: 14425
diff changeset
  2669
		LDFLAGS_SUFFIX_solaris:=-lc,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2670
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2671
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2672
			  -D "JDK_FNAME=j2pkcs11.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2673
			  -D "JDK_INTERNAL_NAME=j2pkcs11" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2674
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2675
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pkcs11,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2676
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2677
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2678
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2679
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2680
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2681
16129
744dd8193801 8010030: Allow configure to detect if EC implementation is present
omajid
parents: 16127
diff changeset
  2682
ifeq ($(ENABLE_INTREE_EC),yes)
744dd8193801 8010030: Allow configure to detect if EC implementation is present
omajid
parents: 16127
diff changeset
  2683
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2684
BUILD_LIBSUNEC_FLAGS:= -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2685
                       -I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2686
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2687
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2688
# On sol-sparc...all libraries are compiled with -xregs=no%appl
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2689
#   (set in CFLAGS_REQUIRED_sparc)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2690
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2691
# except!!! libsunec.so
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2692
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2693
ECC_JNI_SOLSPARC_FILTER:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2694
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2695
     ECC_JNI_SOLSPARC_FILTER:=-xregs=no%appl
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2696
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2697
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2698
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2699
		LIBRARY:=sunec,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2700
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2701
		SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/ec \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2702
                     $(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2703
		LANG:=C++, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2704
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2705
		CFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB))\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2706
                        $(BUILD_LIBSUNEC_FLAGS) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2707
                        -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2708
		CXXFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2709
                          $(BUILD_LIBSUNEC_FLAGS),\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2710
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsunec/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2711
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK),\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2712
		LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2713
		LDFLAGS_SUFFIX:=$(LIBCXX),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2714
                LDFLAGS_SUFFIX_linux:=-lc ,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2715
                LDFLAGS_SUFFIX_solaris:=-lc ,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2716
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2717
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2718
			  -D "JDK_FNAME=sunec.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2719
			  -D "JDK_INTERNAL_NAME=sunec" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2720
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2721
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunec,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2722
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2723
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2724
BUILD_LIBRARIES += $(BUILD_LIBSUNEC)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2725
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2726
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2727
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2728
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2729
LIBJSOUND_SRC_DIRS:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2730
	$(JDK_TOPDIR)/src/share/native/com/sun/media/sound \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2731
	$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/media/sound
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2732
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2733
LIBJSOUND_SRC_FILES:=Utilities.c Platform.c
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2734
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2735
LIBJSOUND_LANG:=C
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2736
LIBJSOUND_CFLAGS:=$(foreach dir,$(LIBJSOUND_SRC_DIRS),-I$(dir))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2737
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2738
EXTRA_SOUND_JNI_LIBS:=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2739
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2740
LIBJSOUND_MIDIFILES:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2741
	MidiInDevice.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2742
	MidiInDeviceProvider.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2743
	MidiOutDevice.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2744
	MidiOutDeviceProvider.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2745
	PlatformMidi.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2746
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2747
# files needed for ports
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2748
LIBJSOUND_PORTFILES:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2749
	PortMixerProvider.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2750
	PortMixer.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2751
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2752
# files needed for direct audio
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2753
LIBJSOUND_DAUDIOFILES:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2754
	DirectAudioDeviceProvider.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2755
	DirectAudioDevice.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2756
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2757
ifeq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2758
	EXTRA_SOUND_JNI_LIBS += jsoundds
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2759
	LIBJSOUND_CFLAGS += -DX_PLATFORM=X_WINDOWS \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2760
                            -DUSE_PLATFORM_MIDI_OUT=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2761
                            -DUSE_PLATFORM_MIDI_IN=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2762
                            -DUSE_PORTS=TRUE
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2763
	LIBJSOUND_SRC_FILES += \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2764
		PLATFORM_API_WinOS_MidiIn.cpp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2765
		PLATFORM_API_WinOS_MidiOut.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2766
		PLATFORM_API_WinOS_Util.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2767
		PLATFORM_API_WinOS_Ports.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2768
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2769
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2770
endif # OPENJDK_TARGET_OS windows
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2771
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2772
ifeq ($(OPENJDK_TARGET_OS), linux)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2773
	EXTRA_SOUND_JNI_LIBS += jsoundalsa
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2774
	LIBJSOUND_CFLAGS += -DX_PLATFORM=X_LINUX
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2775
endif # OPENJDK_TARGET_OS linux
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2776
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2777
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2778
	LIBJSOUND_LANG:=C++
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2779
	LIBJSOUND_CFLAGS += -DX_PLATFORM=X_MACOSX \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2780
                            -DUSE_PORTS=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2781
                            -DUSE_DAUDIO=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2782
                            -DUSE_PLATFORM_MIDI_OUT=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2783
                            -DUSE_PLATFORM_MIDI_IN=TRUE
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2784
	LIBJSOUND_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/sun/media/sound
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2785
	LIBJSOUND_SRC_FILES += \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2786
		PLATFORM_API_MacOSX_Utils.cpp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2787
		PLATFORM_API_MacOSX_PCM.cpp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2788
		PLATFORM_API_MacOSX_Ports.cpp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2789
                PLATFORM_API_MacOSX_MidiIn.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2790
                PLATFORM_API_MacOSX_MidiOut.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2791
                PLATFORM_API_MacOSX_MidiUtils.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2792
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2793
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2794
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2795
endif # OPENJDK_TARGET_OS macosx
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2796
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2797
ifeq ($(OPENJDK_TARGET_OS), solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2798
	LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2799
                            -DUSE_PORTS=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2800
                            -DUSE_DAUDIO=TRUE
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2801
	LIBJSOUND_SRC_FILES += \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2802
		PLATFORM_API_SolarisOS_Utils.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2803
		PLATFORM_API_SolarisOS_Ports.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2804
		PLATFORM_API_SolarisOS_PCM.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2805
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2806
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2807
	LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2808
endif # OPENJDK_TARGET_OS solaris
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2809
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2810
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2811
ifeq ($(JVM_VARIANT_ZERO), true)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2812
	LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2813
else
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2814
  ifeq ($(OPENJDK_TARGET_CPU), x86)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2815
	LIBJSOUND_CFLAGS += -DX_ARCH=X_I586
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2816
  endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2817
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2818
  ifeq ($(OPENJDK_TARGET_CPU), sparc)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2819
	LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2820
  endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2821
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2822
  ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2823
	LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2824
  endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2825
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2826
  ifeq ($(OPENJDK_TARGET_CPU), x86_64)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2827
	LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2828
  endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2829
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2830
  ifeq ($(OPENJDK_TARGET_CPU), arm)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2831
	LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2832
  endif
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2833
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2834
  ifeq ($(OPENJDK_TARGET_CPU), ppc)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2835
	LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2836
  endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2837
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2838
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2839
LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"'
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2840
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2841
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2842
		LIBRARY:=jsound,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2843
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2844
		SRC:=$(LIBJSOUND_SRC_DIRS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2845
		INCLUDE_FILES:=$(LIBJSOUND_SRC_FILES),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2846
		LANG:=$(LIBJSOUND_LANG),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2847
		OPTIMIZATION:=LOW, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2848
		CFLAGS:=$(CFLAGS_JDKLIB) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2849
		        $(LIBJSOUND_CFLAGS), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2850
		CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2851
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsound/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2852
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2853
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2854
		LDFLAGS_macosx:=-framework CoreAudio -framework CoreFoundation \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2855
				-framework CoreServices -framework AudioUnit $(LIBCXX) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2856
				-framework CoreMIDI -framework AudioToolbox,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2857
		LDFLAGS_windows:=$(WIN_JAVA_LIB) advapi32.lib winmm.lib,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2858
		LDFLAGS_SUFFIX_posix:=-ljava -ljvm,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2859
		LDFLAGS_SUFFIX_solaris:=-lc ,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2860
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2861
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2862
			  -D "JDK_FNAME=jsound.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2863
			  -D "JDK_INTERNAL_NAME=jsound" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2864
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2865
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsound,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2866
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2867
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2868
$(BUILD_LIBJSOUND) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2869
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2870
BUILD_LIBRARIES += $(BUILD_LIBJSOUND)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2871
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2872
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2873
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2874
ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)),)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2875
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2876
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2877
		LIBRARY:=jsoundalsa,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2878
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2879
		SRC:=$(LIBJSOUND_SRC_DIRS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2880
		INCLUDE_FILES:=Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2881
                                $(LIBJSOUND_DAUDIOFILES) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2882
				PLATFORM_API_LinuxOS_ALSA_CommonUtils.c   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2883
				PLATFORM_API_LinuxOS_ALSA_PCM.c     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2884
				PLATFORM_API_LinuxOS_ALSA_PCMUtils.c   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2885
				PLATFORM_API_LinuxOS_ALSA_MidiIn.c  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2886
				PLATFORM_API_LinuxOS_ALSA_MidiOut.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2887
				PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2888
				PLATFORM_API_LinuxOS_ALSA_Ports.c,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2889
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2890
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2891
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2892
			$(LIBJSOUND_CFLAGS) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2893
			-DUSE_DAUDIO=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2894
			-DUSE_PORTS=TRUE  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2895
			-DUSE_PLATFORM_MIDI_OUT=TRUE \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2896
			-DUSE_PLATFORM_MIDI_IN=TRUE, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2897
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsoundalsa/mapfile-vers, \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2898
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2899
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2900
		LDFLAGS_SUFFIX:=-lasound -ljava -ljvm,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2901
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2902
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2903
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2904
$(BUILD_LIBJSOUNDALSA) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2905
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2906
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDALSA)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2907
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2908
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2909
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2910
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2911
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2912
ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)),)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2913
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2914
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2915
		LIBRARY:=jsoundds,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2916
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2917
		SRC:=$(LIBJSOUND_SRC_DIRS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2918
		INCLUDE_FILES:=Utilities.c $(LIBJSOUND_DAUDIOFILES) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2919
				PLATFORM_API_WinOS_DirectSound.cpp, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2920
		LANG:=C++,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2921
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2922
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2923
			$(LIBJSOUND_CFLAGS) \
15883
f57291ffafbf 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
erikj
parents: 15676
diff changeset
  2924
			-DUSE_DAUDIO=TRUE \
f57291ffafbf 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
erikj
parents: 15676
diff changeset
  2925
                        -I$(DXSDK_INCLUDE_PATH), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2926
		LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2927
			 $(call SET_SHARED_LIBRARY_ORIGIN),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2928
		LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) dsound.lib winmm.lib user32.lib ole32.lib,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2929
		VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2930
		RC_FLAGS:=$(RC_FLAGS)\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2931
			  -D "JDK_FNAME=jsoundds.dll" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2932
			  -D "JDK_INTERNAL_NAME=jsoundds" \
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  2933
			  -D "JDK_FTYPE=0x2L",\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2934
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundds,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2935
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2936
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2937
$(BUILD_LIBJSOUNDDS) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2938
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2939
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDDS)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2940
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2941
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2942
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2943
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2944
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2945
ifeq ($(OPENJDK_TARGET_OS), solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2946
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2947
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2948
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2949
		LIBRARY:=j2ucrypto,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2950
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2951
		SRC:=$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2952
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2953
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2954
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2955
			-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto ,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2956
		MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2ucrypto/mapfile-vers, \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2957
		LDFLAGS:=$(LDFLAGS_JDKLIB),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2958
		LDFLAGS_SUFFIX:=$(LIBDL),\
15676
291a66e841c2 8008294: build-infra: Build-infra closed fails on solaris 11.1
erikj
parents: 15334
diff changeset
  2959
		LDFLAGS_SUFFIX_solaris:=-lc,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2960
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2961
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2962
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2963
$(BUILD_LIBJ2UCRYPTO) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2964
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2965
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2966
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2967
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2968
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2969
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2970
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2971
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2972
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2973
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2974
$(eval $(call SetupNativeCompilation,BUILD_LIBAPPLESCRIPTENGINE,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2975
		LIBRARY:=AppleScriptEngine,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2976
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2977
		SRC:=$(JDK_TOPDIR)/src/macosx/native/apple/applescript,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2978
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2979
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2980
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2981
			-I$(JDK_TOPDIR)/src/macosx/native/apple/applescript \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2982
			-F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2983
                        -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2984
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2985
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2986
		LDFLAGS_SUFFIX:=-framework Cocoa \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2987
                                -framework Carbon \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2988
                                -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2989
                                -framework JavaNativeFoundation \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  2990
                                $(LDFLAGS_JDKLIB_SUFFIX),\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2991
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  2992
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2993
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2994
$(BUILD_LIBAPPLESCRIPTENGINE) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2995
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  2996
BUILD_LIBRARIES += $(BUILD_LIBAPPLESCRIPTENGINE)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2997
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2998
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  2999
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3000
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3001
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3002
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3003
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3004
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3005
		LIBRARY:=osxapp,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3006
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3007
		SRC:=$(JDK_TOPDIR)/src/macosx/native/sun/osxapp,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3008
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3009
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3010
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3011
			-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
  3012
			-I$(JDK_OUTPUTDIR)/gensrc/sun/osxapp \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3013
                        -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3014
                        -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3015
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3016
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3017
		LDFLAGS_SUFFIX_macosx:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3018
	-framework Accelerate \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3019
	-framework ApplicationServices \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3020
	-framework AudioToolbox \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3021
	-framework Carbon \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3022
	-framework Cocoa \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3023
	-framework Security \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3024
	-framework ExceptionHandling \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3025
        -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3026
	-framework JavaNativeFoundation \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3027
	-framework JavaRuntimeSupport \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3028
	-framework OpenGL \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3029
	-framework IOSurface \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3030
	-framework QuartzCore, \
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3031
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3032
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3033
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3034
BUILD_LIBRARIES += $(BUILD_LIBOSXAPP)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3035
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3036
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3037
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3038
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3039
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3040
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3041
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3042
LIBOSX_DIRS:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3043
  $(JDK_TOPDIR)/src/macosx/native/com/apple/concurrent \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3044
  $(JDK_TOPDIR)/src/macosx/native/java/util \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3045
  $(JDK_TOPDIR)/src/macosx/native/com/apple/eio \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3046
  $(JDK_TOPDIR)/src/macosx/native/apple/security \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3047
  $(JDK_TOPDIR)/src/macosx/native/apple/launcher
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3048
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3049
$(eval $(call SetupNativeCompilation,BUILD_LIBOSX,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3050
		LIBRARY:=osx,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3051
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3052
		SRC:=$(LIBOSX_DIRS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3053
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3054
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3055
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3056
                        $(foreach dir,$(LIBOSX_DIRS),-I$(dir)) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3057
                        -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3058
                        -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3059
                        -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3060
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3061
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3062
		LDFLAGS_SUFFIX_macosx:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3063
    -losxapp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3064
    -framework Cocoa \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3065
    -framework ApplicationServices \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3066
    -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3067
    -framework JavaNativeFoundation \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3068
    -framework JavaRuntimeSupport \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3069
    -framework Security \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3070
    -framework SystemConfiguration \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3071
    $(LDFLAGS_JDKLIB_SUFFIX), \
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3072
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3073
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3074
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3075
BUILD_LIBRARIES += $(BUILD_LIBOSX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3076
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3077
$(BUILD_LIBOSX) : $(BUILD_LIBOSXAPP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3078
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3079
$(BUILD_LIBOSX) : $(BUILD_LIBJAVA)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3080
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3081
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3082
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3083
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3084
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3085
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3086
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3087
LIBAWT_LWAWT_FILES:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3088
        awt.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3089
        ApplicationDelegate.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3090
        CFRetainedResource.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3091
        CGLGraphicsConfig.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3092
        CGLSurfaceData.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3093
        CGLLayer.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3094
        CGraphicsConfig.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3095
        CGraphicsDevice.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3096
        CGraphicsEnv.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3097
        CCharToGlyphMapper.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3098
        CSystemColors.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3099
        AWTFont.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3100
        CGGlyphOutlines.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3101
        CGGlyphImages.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3102
        CoreTextSupport.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3103
        AWTStrike.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3104
        InitIDs.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3105
        AWTEvent.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3106
        AWTView.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3107
        AWTWindow.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3108
        AWTSurfaceLayers.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3109
        CCursorManager.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3110
        CClipboard.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3111
        CDataTransferer.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3112
        CDragSource.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3113
        CDragSourceContextPeer.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3114
        CDropTarget.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3115
        CDropTargetContextPeer.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3116
        CInputMethod.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3117
        CDesktopPeer.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3118
        OSVersion.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3119
        DnDUtilities.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3120
        CFileDialog.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3121
        CImage.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3122
        CMenu.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3123
        CMenuBar.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3124
        CMenuComponent.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3125
        CMenuItem.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3126
        CPopupMenu.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3127
        CRobot.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3128
        CTrayIcon.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3129
        CWrapper.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3130
        JavaAccessibilityAction.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3131
        JavaAccessibilityUtilities.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3132
        JavaComponentAccessibility.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3133
        JavaTextAccessibility.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3134
        LWCToolkit.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3135
        GeomUtilities.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3136
        CPrinterJob.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3137
        PrintModel.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3138
        PrinterSurfaceData.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3139
        PrinterView.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3140
        QuartzSurfaceData.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3141
        QuartzRenderer.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3142
        CTextPipe.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3143
        ImageSurfaceData.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3144
        awt_DrawingSurface.m \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3145
        \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3146
        OGLBlitLoops.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3147
        OGLBufImgOps.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3148
        OGLContext.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3149
        OGLFuncs.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3150
        OGLMaskBlit.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3151
        OGLMaskFill.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3152
        OGLPaints.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3153
        OGLRenderQueue.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3154
        OGLRenderer.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3155
        OGLSurfaceData.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3156
        OGLTextRenderer.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3157
        OGLVertexCache.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3158
        AccelGlyphCache.c \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3159
        CUPSfuncs.c
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3160
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3161
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3162
LIBAWT_LWAWT_DIRS:=\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3163
  $(JDK_TOPDIR)/src/macosx/native/sun/awt \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3164
  $(JDK_TOPDIR)/src/macosx/native/sun/font \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3165
  $(JDK_TOPDIR)/src/macosx/native/sun/java2d/opengl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3166
  $(JDK_TOPDIR)/src/solaris/native/sun/awt \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3167
  $(JDK_TOPDIR)/src/share/native/sun/font \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3168
  $(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3169
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3170
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3171
		LIBRARY:=awt_lwawt,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3172
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3173
		SRC:=$(LIBAWT_LWAWT_DIRS),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3174
		LANG:=C,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3175
		INCLUDE_FILES:=$(LIBAWT_LWAWT_FILES),\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3176
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3177
		CFLAGS:=$(CFLAGS_JDKLIB) \
14233
18fda1299ea9 8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents: 14231
diff changeset
  3178
                        $(X_CFLAGS) \
18fda1299ea9 8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents: 14231
diff changeset
  3179
                        $(X_LIBS) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3180
                        $(foreach dir,$(LIBAWT_LWAWT_DIRS),-I$(dir)) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3181
                        -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3182
                        -I$(JDK_TOPDIR)/src/share/native/sun/java2d \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3183
                        -I$(JDK_TOPDIR)/src/solaris/native/sun/java2d \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3184
                        -I$(JDK_TOPDIR)/src/share/native/sun/awt/image \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3185
                        -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3186
                        -I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3187
                        -I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3188
                        -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3189
                        -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3190
                        -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3191
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3192
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3193
		LDFLAGS_SUFFIX_macosx:=-lawt -lmlib_image -losxapp -ljvm $(LIBM) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3194
				       -framework Accelerate \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3195
				       -framework ApplicationServices \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3196
				       -framework AudioToolbox \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3197
				       -framework Carbon \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3198
				       -framework Cocoa \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3199
				       -framework Security \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3200
				       -framework ExceptionHandling \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3201
				       -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3202
				       -framework JavaNativeFoundation \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3203
				       -framework JavaRuntimeSupport \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3204
				       -framework OpenGL \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3205
				       -framework QuartzCore -ljava,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3206
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3207
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3208
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3209
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3210
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3211
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBAWT) 
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3212
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3213
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBMLIB_IMAGE)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3214
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3215
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBOSXAPP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3216
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3217
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBJAVA)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3218
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3219
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3220
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3221
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3222
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3223
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3224
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3225
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3226
		LIBRARY:=osxui,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3227
                OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3228
		SRC:=$(JDK_TOPDIR)/src/macosx/native/com/apple/laf,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3229
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3230
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3231
		CFLAGS:=$(CFLAGS_JDKLIB) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3232
                        -I$(JDK_TOPDIR)/src/macosx/native/com/apple/laf \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3233
			-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3234
			-I$(JDK_TOPDIR)/src/macosx/native/sun/awt \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3235
                        -F/System/Library/Frameworks/JavaVM.framework/Frameworks, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3236
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3237
			 $(call SET_SHARED_LIBRARY_ORIGIN) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3238
			 -Xlinker -rpath -Xlinker @loader_path,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3239
		LDFLAGS_SUFFIX_macosx:=-lawt -losxapp -lawt_lwawt \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3240
				       -framework Cocoa \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3241
				       -framework Carbon \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3242
				       -framework ApplicationServices \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3243
				       -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3244
				       -framework JavaNativeFoundation \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3245
				       -framework JavaRuntimeSupport \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3246
				       -ljava -ljvm,\
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3247
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3248
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3249
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3250
BUILD_LIBRARIES += $(BUILD_LIBOSXUI)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3251
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3252
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT) 
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3253
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3254
$(BUILD_LIBOSXUI) : $(BUILD_LIBOSXAPP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3255
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3256
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT_LWAWT)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3257
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3258
#$(BUILD_LIBOSXUI) : $(BUILD_LIBJAVA)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3259
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3260
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3261
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3262
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3263
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3264
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3265
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3266
# Ugly hack to mimic behaviour in old build where this is built as an xcode project.
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3267
SET_SHARED_LIBRARY_NAME=-Xlinker -install_name -Xlinker /usr/local/lib/libJObjC.dylib
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3268
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3269
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC32,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3270
		LIBRARY:=JObjC,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3271
                OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3272
		SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3273
                     $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3274
		LANG:=C,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3275
		OPTIMIZATION:=LOW, \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3276
		CFLAGS:=-fpascal-strings \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3277
                        -fobjc-gc \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3278
                        -gdwarf-2 \
14344
a5537423264b 8002220: build-infra: update for mac, solaris 11 issues
erikj
parents: 14235
diff changeset
  3279
                        $(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3280
                        -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3281
			-m32,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3282
		LDFLAGS:=$(LDFLAGS_JDKLIB)\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3283
			-m32, \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3284
		LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3285
                                  -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3286
                                  -framework JavaNativeFoundation \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3287
                                  -lffi, \
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3288
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3289
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3290
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3291
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC64,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3292
		LIBRARY:=JObjC,\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3293
                OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3294
		SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3295
                     $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3296
		LANG:=C,\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3297
		OPTIMIZATION:=LOW, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3298
		CFLAGS:=-fpascal-strings \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3299
                        -fobjc-gc \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3300
                        -gdwarf-2 \
14344
a5537423264b 8002220: build-infra: update for mac, solaris 11 issues
erikj
parents: 14235
diff changeset
  3301
                        $(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3302
                        -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3303
			, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3304
		LDFLAGS:=-fpascal-strings \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3305
                         -fobjc-gc \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3306
                         -gdwarf-2 \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3307
                         $(LDFLAGS_JDKLIB)\
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3308
			 $(call SET_SHARED_LIBRARY_ORIGIN), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3309
		LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3310
                                  -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3311
                                  -framework JavaNativeFoundation \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
  3312
                                  -lffi, \
17213
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3313
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\
7fe77eacbf83 8011366: Enable debug info on all libraries for OpenJDK builds
andrew
parents: 16835
diff changeset
  3314
		DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3315
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3316
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX): $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3317
	$(LIPO) -create -output $@ $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3318
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
  3319
BUILD_LIBRARIES += $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3320
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3321
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3322
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3323
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
  3324
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3325
ifndef OPENJDK
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3326
ifeq ($(OPENJDK_TARGET_OS), windows)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3327
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3328
  ACCESSBRIDGE_SRCDIR:=$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3329
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3330
  define SetupAccessBridge
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3331
    # Parameter 1 Suffix
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3332
    # Parameter 2 Machine
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3333
    # Parameter 3 ACCESSBRIDGE_ARCH_ suffix
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3334
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3335
    $(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3336
		LIBRARY=JAWTAccessBridge$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3337
		OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3338
		SRC:=$(ACCESSBRIDGE_SRCDIR),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3339
		INCLUDE_FILES:=JAWTAccessBridge.cpp,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3340
		LANG:=C++,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3341
		OPTIMIZATION:=LOW,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3342
		CFLAGS:=$(CFLAGS_JDKLIB) \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3343
			-DACCESSBRIDGE_ARCH_$3,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3344
		LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3345
			 winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3346
			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3347
			 -subsystem:windows -machine:$2 \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3348
			 -def:$(ACCESSBRIDGE_SRCDIR)/JAWTAccessBridge.DEF,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3349
		VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3350
		RC_FLAGS:=$(RC_FLAGS),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3351
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3352
		DEBUG_SYMBOLS:=true)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3353
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3354
    $$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3355
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3356
    $(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3357
		LIBRARY=JavaAccessBridge$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3358
		OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3359
		SRC:=$(ACCESSBRIDGE_SRCDIR),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3360
		INCLUDE_FILES:=AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3361
			       AccessBridgeJavaEntryPoints.cpp \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3362
			       AccessBridgeMessages.cpp JavaAccessBridge.cpp,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3363
		LANG:=C++,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3364
		OPTIMIZATION:=LOW,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3365
		CFLAGS:=$(CFLAGS_JDKLIB) \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3366
			-DACCESSBRIDGE_ARCH_$3,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3367
		LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3368
			 winspool.lib comdlg32.lib advapi32.lib shell32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3369
			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3370
			 -subsystem:windows -machine:$2 \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3371
			 -def:$(ACCESSBRIDGE_SRCDIR)/JavaAccessBridge.DEF,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3372
		VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3373
		RC_FLAGS:=$(RC_FLAGS),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3374
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3375
		DEBUG_SYMBOLS:=true)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3376
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3377
    $(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3378
		LIBRARY=WindowsAccessBridge$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3379
		OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3380
		SRC:=$(ACCESSBRIDGE_SRCDIR),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3381
		INCLUDE_FILES:=AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3382
			       AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3383
			       WinAccessBridge.cpp AccessBridgeDebug.cpp \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3384
			       AccessBridgeEventHandler.cpp,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3385
		LANG:=C++,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3386
		OPTIMIZATION:=LOW,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3387
		CFLAGS:=$(filter-out -MD,$(CFLAGS_JDKLIB)) -MT \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3388
			-DACCESSBRIDGE_ARCH_$3,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3389
		LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3390
			 winspool.lib comdlg32.lib advapi32.lib shell32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3391
			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3392
			 -subsystem:windows -machine:$2 \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3393
			 -def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3394
		VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3395
		RC_FLAGS:=$(RC_FLAGS),\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3396
		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3397
		DEBUG_SYMBOLS:=true)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3398
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3399
    BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3400
		       $$(BUILD_WINDOWSACCESSBRIDGE$1)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3401
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3402
  endef
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3403
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3404
  ifeq ($(OPENJDK_TARGET_CPU_BITS),32)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3405
    $(eval $(call SetupAccessBridge,-32,I386,32))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3406
    $(eval $(call SetupAccessBridge,,I386,LEGACY))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3407
  else
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3408
    $(eval $(call SetupAccessBridge,-64,X64,64))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3409
  endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3410
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3411
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3412
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3413
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3414
##########################################################################################
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
  3415
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
  3416
all: $(COPY_FILES) $(BUILD_LIBRARIES)
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
  3417
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
  3418
.PHONY: all