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