jdk/make/sun/awt/Makefile
author prr
Thu, 20 Jan 2011 13:56:26 -0800
changeset 7948 6711180a6212
parent 7793 bcc54a3c2825
child 8583 15dea0fdc2ea
child 8519 ce545cf57630
permissions -rw-r--r--
7013646: remove obsolete fontconfig files for linux and solaris Reviewed-by: igor, jgodinez
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
7668
d4a77089c587 6962318: Update copyright year
ohair
parents: 7507
diff changeset
     2
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4836
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4836
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4836
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4836
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4836
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
BUILDDIR = ../..
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2477
diff changeset
    27
MODULE  = awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
PACKAGE = sun.awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
LIBRARY = awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
PRODUCT = sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# Tell Defs.gmk that VIS is needed
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
VIS_NEEDED=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
917
75261da60fff 6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents: 2
diff changeset
    35
# Use highest optimization level
75261da60fff 6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents: 2
diff changeset
    36
OPTMIZATION_LEVEL = HIGHEST
75261da60fff 6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents: 2
diff changeset
    37
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
OTHER_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
# Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
# Include all Java source files in sun/awt and sun/java2d, except for:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
# sun/awt/resources       handled by java/awt/Makefile
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
# sun/java2d/pisces       handled by sun/pisces/Makefile
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#
1978
8b981ce05cd0 6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents: 1971
diff changeset
    51
AUTO_FILES_JAVA_DIRS = sun/awt sun/java2d com/sun/awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
AUTO_JAVA_PRUNE = resources pisces
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
include FILES_c_windows.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
include FILES_export_windows.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
# Prune files that are currently unused on Windows (but still used on
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
# Solaris/Linux).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
AUTO_JAVA_PRUNE += RemoteOffScreenImage.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
OTHER_CFLAGS += $(GX_OPTION) -DMLIB_NO_LIBSUNMATH -DUNICODE -D_UNICODE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
  OTHER_CFLAGS += -DMLIB_OS64BIT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
# Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
include FILES_c_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
include FILES_export_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
# Prune the sun/awt/X11 subdirectory, which is handled by sun/xawt/Makefile.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
# Also prune files that are currently unused on Solaris/Linux (but still
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
# used on Windows).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
AUTO_JAVA_PRUNE += X11 AWTCharset.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
ifeq  ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
FILES_c = $(FILES_2D_c)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
FILES_c += awt_LoadLibrary.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
OTHER_LDLIBS = $(JVMLIB) $(LIBM) -ldl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
ifeq ($(CC_VER), 5.8)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
  ifndef REMOVE_ALL_WORKAROUNDS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    ifeq ($(ARCH_FAMILY), i586)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
      # If on Solaris 11 (or dlfcn.h has unknown_control_flow pragmas in it)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
      #   we trigger a SS11 bug that causes the compiler to crash (bug 6343678)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
      #   Here we check to see if we need this workaround and change the opt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
      #   settings for this one file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
      USE_WORKAROUND:=$(shell $(GREP) unknown_control_flow /usr/include/dlfcn.h)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
      ifneq ($(USE_WORKAROUND),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
	ifeq ($(FASTDEBUG), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
          CFLAGS_DBG/awt_Mlib.o = -xO0 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
	    $(warning  "WARNING: Using workaround for SS11 bug 6343678, on $@")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
	endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        # Compiler bug 6343678 need to prevent a SEGV in the compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        CFLAGS_OPT/awt_Mlib.o = -g \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
	  $(warning  "WARNING: Using workaround for SS11 bug 6343678, on $@")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
      endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
ifeq  ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
FILES_c = $(FILES_2D_c)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
FILES_c += awt_LoadLibrary.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
OTHER_LDLIBS = $(JVMLIB) $(LIBM) -ldl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
FILES_c += initIDs.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
endif # PLATFORM 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS-SPARC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
# solaris-sparc and solaris-sparcv9 both build 'vis'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
ifeq ("$(PLATFORM)-$(ARCH_FAMILY)", "solaris-sparc")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
  FILES_c += $(FILES_2D_vis)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
  ASFLAGS += -P
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
  FILES_s += mlib_v_ImageCopy_blk.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
  INLINE_VIS = $(PLATFORM_SRC)/native/sun/awt/medialib/vis_$(ARCH_DATA_MODEL).il
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
  CFLAGS_sparcv9 = -DMLIB_OS64BIT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
  CFLAGS += $(CFLAGS_$(ARCH)) -DMLIB_ADD_SUFF $(INLINE_VIS) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
	    -I$(SHARE_SRC)/native/sun/awt/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
	    -I$(PLATFORM_SRC)/native/sun/awt/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
	    -I$(PLATFORM_SRC)/native/sun/java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
vpath %.c  $(PLATFORM_SRC)/native/sun/java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
vpath %.c  $(SHARE_SRC)/native/sun/awt/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
vpath %.c  $(PLATFORM_SRC)/native/sun/awt/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
vpath %.s  $(PLATFORM_SRC)/native/sun/awt/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
  FILES_c += MapAccelFunc.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS-SPARC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
# Resources
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
LOCALE_SET_DEFINITION = jre
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
  RESOURCE_BUNDLES_COMPILED_PROPERTIES += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
	sun/awt/windows/awtLocalization.properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
# Rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
  FILES_m = mapfile-vers-linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
  # libawt.so on Linux is statically linked with Motif and contains all the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
  # Xm symbols. Mapfile is disabled so the symbols will remain public.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
  LDNOMAP=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
7777
1241aaaec247 6990037: font warnings in the build, missing fonts
okutsu
parents: 7507
diff changeset
   178
COMPILEFONTCONFIG_FLAGS =
1241aaaec247 6990037: font warnings in the build, missing fonts
okutsu
parents: 7507
diff changeset
   179
ifdef ALT_COMPILEFONTCONFIG_FLAGS
1241aaaec247 6990037: font warnings in the build, missing fonts
okutsu
parents: 7507
diff changeset
   180
  COMPILEFONTCONFIG_FLAGS += $(ALT_COMPILEFONTCONFIG_FLAGS)
1241aaaec247 6990037: font warnings in the build, missing fonts
okutsu
parents: 7507
diff changeset
   181
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
build: fontconfigs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
# Additional dependencies.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
# If make.depend is not working correctly, then it can be omitted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
# if you always build from a clean workspace. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
include make.depend
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
# required additional rules:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
ifndef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
build: dgalibs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
clobber clean:: java2d.clean fontconfigs.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
ifndef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
clobber clean:: dgalib.clean 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
java2d.clean:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
	$(RM) -r $(CLASSBINDIR)/sun/java2d .classes.*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
# Add to the ambient vpath to pick up files in subdirectories
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image/gif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/image/cvutils
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/shell
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/debug
2451
597df8e1d786 6633275: Need to support shaped/translucent windows
art
parents: 1978
diff changeset
   227
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/utility
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
vpath %.cpp   $(PLATFORM_SRC)/native/sun/windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
vpath %.cpp   $(PLATFORM_SRC)/native/$(PKGDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
vpath %.cpp   $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
vpath %.cpp   $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/d3d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
vpath %.c     $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
vpath %.c     $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
vpath %.c     $(SHARE_SRC)/native/$(PKGDIR)/../font
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
vpath %.c   $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
vpath %.c   $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
vpath %.c   $(SHARE_SRC)/native/$(PKGDIR)/../font
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
OTHER_LDLIBS = kernel32.lib user32.lib gdi32.lib winspool.lib \
1954
b93b85df3211 6585765: RFE: Remove Unicows-related code from AWT
art
parents: 888
diff changeset
   256
               imm32.lib ole32.lib uuid.lib shell32.lib \
4831
85d01a4fe115 4874070: invoking DragSource's startDrag with an Image renders no image on drag
uta
parents: 2477
diff changeset
   257
               comdlg32.lib winmm.lib comctl32.lib \
85d01a4fe115 4874070: invoking DragSource's startDrag with an Image renders no image on drag
uta
parents: 2477
diff changeset
   258
               shlwapi.lib delayimp.lib \
1954
b93b85df3211 6585765: RFE: Remove Unicows-related code from AWT
art
parents: 888
diff changeset
   259
               $(JVMLIB) \
b93b85df3211 6585765: RFE: Remove Unicows-related code from AWT
art
parents: 888
diff changeset
   260
               /DELAYLOAD:user32.dll /DELAYLOAD:gdi32.dll \
b93b85df3211 6585765: RFE: Remove Unicows-related code from AWT
art
parents: 888
diff changeset
   261
               /DELAYLOAD:shell32.dll /DELAYLOAD:winmm.dll \
b93b85df3211 6585765: RFE: Remove Unicows-related code from AWT
art
parents: 888
diff changeset
   262
               /DELAYLOAD:winspool.drv /DELAYLOAD:imm32.dll \
b93b85df3211 6585765: RFE: Remove Unicows-related code from AWT
art
parents: 888
diff changeset
   263
               /DELAYLOAD:ole32.dll /DELAYLOAD:comdlg32.dll \
4831
85d01a4fe115 4874070: invoking DragSource's startDrag with an Image renders no image on drag
uta
parents: 2477
diff changeset
   264
               /DELAYLOAD:comctl32.dll /DELAYLOAD:shlwapi.dll
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
clean:: awt.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
awt.clean: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
	$(RM) $(TEMPDIR)/awt.ico 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
	$(RM) $(TEMPDIR)/awt.res 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
	$(RM) $(TEMPDIR)/hand.cur 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
	$(RM) $(TEMPDIR)/check.bmp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
LIBXTST = -lXtst
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
# Use -lXmu for EditRes support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
LIBXMU_DBG	= -lXmu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
LIBXMU_OPT	=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
LIBXMU	        = $(LIBXMU_$(VARIANT))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
# Extra C flags.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
ifndef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
# Solaris X11 Direct Graphics Access library
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
_DGALIBS_sparc = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
	libxinerama.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
	libjdgaSUNWcg6.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
	libjdgaSUNWffb.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
	libjdgaSUNWm64.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
	libjdgaSUNWafb.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
_DGALIBS_sparcv9 = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
	libxinerama.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
	libjdgaSUNWcg6.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
	libjdgaSUNWffb.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
	libjdgaSUNWm64.so \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
	libjdgaSUNWafb.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
_DGALIBS_i586 = 	# no i586 library yet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
_DGALIBS_amd64 = 	# no amd64 library yet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
DGALIBS = $(_DGALIBS_$(ARCH):%=$(LIBDIR)/$(LIBARCH)/%)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
dgalibs: $(DGALIBS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
$(LIBDIR)/$(LIBARCH)/libxinerama.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libxinerama.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
	$(install-file)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2477
diff changeset
   321
	$(call chmod-file, a+x)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
$(LIBDIR)/$(LIBARCH)/libjdgaSUNW%.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libjdgaSUNW%.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
	$(install-file)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2477
diff changeset
   325
	$(call chmod-file, a+x)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
$(LIBDIR)/$(LIBARCH)/libjdgaSUNWafb.so: $(LIBDIR)/$(LIBARCH)/libjdgaSUNWffb.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
	$(prep-target)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2477
diff changeset
   329
	$(call install-sym-link, libjdgaSUNWffb.so)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
clean:: dgalib.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
dgalib.clean:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
	$(RM) $(LIBDIR)/$(LIBARCH)/libjdgaSUNW* $(LIBDIR)/$(LIBARCH)/libxinerama.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
# Font configs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
_FONTCONFIGS = \
2370
bdaf8cd4253f 6708137: Remove obsolete fontconfig.98.properties from JDK 7
prr
parents: 922
diff changeset
   349
        fontconfig.properties
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
FONTCONFIGS_SRC_PREFIX =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
FONTCONFIGS_SRC	= $(PLATFORM_SRC)/classes/sun/awt/fontconfigs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
_FONTCONFIGS	= \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
	fontconfig.properties				\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
	fontconfig.SuSE.properties                      \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
	fontconfig.Ubuntu.properties                    \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
	fontconfig.Fedora.properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
FONTCONFIGS_SRC	= $(CLOSED_SRC)/solaris/classes/sun/awt/fontconfigs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
_FONTCONFIGS	= \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
	fontconfig.properties				\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
	fontconfig.RedHat.properties			\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
	fontconfig.Turbo.properties			\
7507
d138864de4a6 6911839: Sles/SuSE 11 needs CJK support
okutsu
parents: 5506
diff changeset
   373
	fontconfig.SuSE.10.properties                   \
d138864de4a6 6911839: Sles/SuSE 11 needs CJK support
okutsu
parents: 5506
diff changeset
   374
	fontconfig.SuSE.11.properties
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
FONTCONFIGS_SRC_PREFIX = $(PLATFORM).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
FONTCONFIGS_SRC	= $(PLATFORM_SRC)/classes/sun/awt/fontconfigs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
_FONTCONFIGS	= \
7948
6711180a6212 7013646: remove obsolete fontconfig files for linux and solaris
prr
parents: 7793
diff changeset
   387
	fontconfig.properties
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
FONTCONFIGS_SRC_PREFIX = $(PLATFORM).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
FONTCONFIGS     = $(_FONTCONFIGS:%=$(LIBDIR)/%.src)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
BINARYFONTCONFIGS = $(_FONTCONFIGS:%.properties=$(LIBDIR)/%.bfc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
fontconfigs: $(FONTCONFIGS) $(BINARYFONTCONFIGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
$(LIBDIR)/%.src: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)%
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
	$(install-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
COMPILEFONTCONFIG_JARFILE = $(BUILDTOOLJARDIR)/compilefontconfig.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
$(LIBDIR)/%.bfc: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)%.properties \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    $(COMPILEFONTCONFIG_JARFILE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
	$(prep-target)
7777
1241aaaec247 6990037: font warnings in the build, missing fonts
okutsu
parents: 7507
diff changeset
   407
	$(BOOT_JAVA_CMD) -jar $(COMPILEFONTCONFIG_JARFILE) $(COMPILEFONTCONFIG_FLAGS) $< $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2477
diff changeset
   408
	$(install-module-file)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2477
diff changeset
   409
	$(call chmod-file, 444)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
	@$(java-vm-cleanup)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
fontconfigs.clean :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
	$(RM) $(FONTCONFIGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
	$(RM) $(BINARYFONTCONFIGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
OTHER_CFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
ifeq ($(MILESTONE), internal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
  CPPFLAGS += -DINTERNAL_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
# Useful variables that name parts of the src tree.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
WINAWT_native        = $(PLATFORM_SRC)/native/sun/windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
WINAWT_COMMON_native = $(PLATFORM_SRC)/native/sun/awt_common
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
# FIXME: awt shouldn't have to see the VM's private headers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
# FIXME: if you re-order this list, the build breaks, possibly because 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
#        of filename collision. Such a collision, if present, is pure
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
#        evil. Need to investigate this.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
OTHER_INCLUDES += -I$(CLASSHDRDIR)/../../java/jvm \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
	-I$(OBJDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
	-I$(SHARE_SRC)/native/common \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
	-I$(WINAWT_native) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
	-I$(DXSDK_INCLUDE_PATH) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
	-I$(SHARE_SRC)/native/sun/awt/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
	-I$(SHARE_SRC)/native/sun/awt/image \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
	-I$(SHARE_SRC)/native/sun/java2d/loops \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
	-I$(SHARE_SRC)/native/sun/java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
	-I$(PLATFORM_SRC)/native/sun/java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
	-I$(SHARE_SRC)/native/sun/java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
	-I$(PLATFORM_SRC)/native/sun/java2d/d3d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
	-I$(PLATFORM_SRC)/native/sun/java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
	-I$(PLATFORM_SRC)/native/sun/java2d/windows \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
	-I$(SHARE_SRC)/native/sun/font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
	-I$(SHARE_SRC)/native/sun/java2d/pipe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
	-I$(SHARE_SRC)/native/sun/dc/path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
	-I$(SHARE_SRC)/native/sun/dc/doe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
	-I$(SHARE_SRC)/native/sun/awt/debug \
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   454
	-I$(PLATFORM_SRC)/native/sun/awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
#	-I$(WINAWT_COMMON_native)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
# this is only required for compiling )/native/sun/awt/medialib/*.c files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
OTHER_INCLUDES += -I$(SHARE_SRC)/native/sun/awt/medialib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
# .res file construction.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
    RC_FLAGS += -i "$(PLATFORM_SRC)/resource/icons"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
    RC_FLAGS += -i "$(CLOSED_SRC)/windows/native/sun/windows"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
VERSIONINFO_RESOURCE = $(WINAWT_native)/awt.rc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
# Other extra flags needed for compiling.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
CPPFLAGS += -I$(OPENWIN_HOME)/include \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
            -I$(OPENWIN_HOME)/include/X11/extensions \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/font 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
            -I$(SHARE_SRC)/native/$(PKGDIR)/../font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/../font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
            -I$(SHARE_SRC)/native/$(PKGDIR)/image \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
	    -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
	    -I$(SHARE_SRC)/native/$(PKGDIR)/shell \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
            -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
	    -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
	    -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
	    -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
	    -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
            -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
            -I$(PLATFORM_SRC)/native/$(PKGDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
	    $(EVENT_MODEL)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
LDFLAGS += -L$(OPENWIN_LIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
	   $(AWT_RUNPATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
CLASSES.export += java.io.InputStream \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
		  java.lang.Integer \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
		  java.lang.ThreadGroup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
.PHONY: dgalibs dgalib.clean fontconfigs fontconfigs.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523