jdk/make/sun/xawt/Makefile
author lana
Sat, 29 May 2010 23:26:16 -0700
changeset 5580 629274e4c99f
parent 5579 1a5e995a710b
parent 5506 202f599c92aa
child 7668 d4a77089c587
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     2
# Copyright (c) 2002, 2008, 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: 4665
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: 4665
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: 4665
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
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: 2472
diff changeset
    27
MODULE  = awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
PACKAGE = sun.awt.X11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
LIBRARY = mawt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
LIBRARY_OUTPUT = xawt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
LIB_LOCATION = $(LIBDIR)/$(LIBARCH)/xawt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
PRODUCT = sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
GEN_DIR=$(GENSRCDIR)/sun/awt/X11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
CLASSES_INIT += $(TEMPDIR)/.gen.wrappers $(TEMPDIR)/.gen_icons touch.wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.PHONY: generated.clean
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
include FILES_c_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
include FILES_export_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
AUTO_FILES_JAVA_DIRS = sun/awt/X11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
AUTO_JAVA_PRUNE = WrapperGenerator.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
LDFLAGS += -L$(OPENWIN_LIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
5579
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    52
# For Xrender extension.
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    53
ifeq ($(PLATFORM), solaris)
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    54
LDFLAGS += -L/usr/openwin/sfw/lib$(ISA_DIR) -R/usr/openwin/sfw/lib$(ISA_DIR)
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    55
endif
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    56
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
LDFLAGS += -lpthread
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
# Since this library will be living in a subdirectory below the other libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#   we need to add an extra runpath so that libraries in the upper directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
#   are found at runtime.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
LD_RUNPATH_EXTRAS = ..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
# Rules.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
# Add to the ambient vpath to pick up files in subdirectories
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
vpath %.c   $(SHARE_SRC)/native/sunawt/alphacomposite
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
vpath %.c   $(PLATFORM_SRC)/native/sun/xawt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
vpath %.c   $(PLATFORM_SRC)/native/sun/awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
vpath %.c   $(SHARE_SRC)/native/sun/awt/debug
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
vpath %.c   $(SHARE_SRC)/native/sun/awt/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
vpath %.c   $(SHARE_SRC)/native/sun/awt/image/gif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
vpath %.c   $(SHARE_SRC)/native/sun/awt/image/cvutils
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
vpath %.c   $(SHARE_SRC)/native/sun/awt/shell
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
vpath %.c   $(SHARE_SRC)/native/sun/java2d
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
vpath %.c   $(SHARE_SRC)/native/sun/java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
vpath %.c   $(SHARE_SRC)/native/sun/java2d/pipe
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
vpath %.c   $(SHARE_SRC)/native/sun/awt/medialib
2472
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
    88
vpath %.c   $(SHARE_SRC)/native/sun/awt/utility
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
vpath %.cpp $(SHARE_SRC)/native/sun/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
vpath %.c   $(SHARE_SRC)/native/sun/font
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
vpath %.c   $(PLATFORM_SRC)/native/sun/awt/robot_child
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
vpath %.c   $(SHARE_SRC)/native/sun/java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
vpath %.c   $(PLATFORM_SRC)/native/sun/java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
vpath %.c   $(PLATFORM_SRC)/native/sun/java2d/x11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
5579
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    96
OTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -lXrender -ldl \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                   $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
ifeq  ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
CPPFLAGS += -DFUNCPROTO=15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
CPPFLAGS += -I$(CUPS_HEADERS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
CPPFLAGS += -DXAWT -DXAWT_HACK \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        -I$(TEMPDIR)/../../sun.awt/awt/CClassHeaders \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        -I$(PLATFORM_SRC)/native/sun/awt \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
	-I$(PLATFORM_SRC)/native/sun/xawt \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        -I$(PLATFORM_SRC)/native/sun/jdga \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        -I$(SHARE_SRC)/native/sun/awt/debug \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        -I$(SHARE_SRC)/native/sun/awt/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        -I$(SHARE_SRC)/native/sun/java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
	-I$(SHARE_SRC)/native/sun/java2d/loops \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
	-I$(SHARE_SRC)/native/sun/awt/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
	-I$(SHARE_SRC)/native/sun/awt/image \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
	-I$(SHARE_SRC)/native/sun/font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
	-I$(PLATFORM_SRC)/native/sun/java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
	-I$(SHARE_SRC)/native/sun/java2d/pipe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
	-I$(SHARE_SRC)/native/sun/java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
	-I$(PLATFORM_SRC)/native/sun/java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
	-I$(PLATFORM_SRC)/native/sun/java2d/x11 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
	-I$(SHARE_SRC)/native/sun/dc/path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
	-I$(SHARE_SRC)/native/sun/dc/doe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
	-I$(SHARE_SRC)/native/sun/awt/alphacomposite \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        -I$(SHARE_SRC)/native/sun/awt/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
	-I$(PLATFORM_SRC)/native/sun/awt/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        -I$(PLATFORM_SRC)/native/sun/font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        -I$(SHARE_SRC)/native/sun/awt \
5579
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
   130
        -I$(PLATFORM_SRC)/native/sun/awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
# Allows for builds on Debian GNU Linux, X11 is in a different place 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
  CPPFLAGS += -I/usr/X11R6/include/X11/extensions \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
              -I/usr/include/X11/extensions \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
              -I$(OPENWIN_HOME)/include 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
  CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
ifeq ($(MILESTONE), internal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
  CPPFLAGS += -DINTERNAL_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
# Generation of wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
SIZER_DIR=$(GEN_DIR)/generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
SIZER = $(SIZER_DIR)/sizer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
SIZER_32_C = $(SIZER).32.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
SIZER_64_C = $(SIZER).64.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
CFLAGS_32=$(CFLAGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
CFLAGS_64=$(CFLAGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
isalist:=$(shell $(ISAINFO))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
ifneq (,$(findstring sparcv9, $(isalist)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
# On sparcv9 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
# On sparcv9 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
CFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
SIZERS = $(SIZER).32 $(SIZER).64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
CFLAGS_64=$(CFLAGS) $(XARCH_OPTION/64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
ifneq (,$(findstring amd64, $(isalist)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
# On amd64 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
# On amd64 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
CFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
SIZERS = $(SIZER).32 $(SIZER).64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
CFLAGS_64=$(CFLAGS) $(XARCH_OPTION/64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
else # !sparcv9 : includes (32-bit) sparc, i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
SIZERS = $(SIZER).32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
SIZERS_C = $(SIZER_32_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
endif # amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
endif # sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
else # !solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
SIZERS = $(SIZER).32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
SIZERS_C = $(SIZER_32_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
else # !32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
SIZERS = $(SIZER).64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
SIZERS_C = $(SIZER_64_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
endif # 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
endif # solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
# XXX Hack for 6185483 - use hard-coded sizes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
# Add the 64-bit platforms that need to be included into 32-bit build
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
# and have sizes.64-$(PLATFORM)-$(LIBARCH) hardcoded in the workspace
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
ifeq ($(PLATFORM)-$(LIBARCH), solaris-i386)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
# If you define DOHACK=true for some combination of $(PLATFORM)-$(LIBARCH),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
# make sure you have sizes.64-$(PLATFORM)-$(LIBARCH) pre-generated in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
# $(PLATFORM_SRC)/classes/sun/awt/X11/generator/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
DOHACK=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
endif # Hack
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
ifeq ($(DOHACK), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
PREDEFINED_SIZES_TMPL=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-$(PLATFORM)-$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
PREDEFINED_SIZES=$(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
SIZES += $(WRAPPER_GENERATOR_DIR)/sizes.64
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
ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
DOCOMPARE=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
# 64 bit sizers are generated on platform-libarch (left) for use 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
# on platform-libarch (right) and stored under the latter name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
# Do compare manually stored and automatically generated pair(s) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
# if DOCOMPARE=true, just after the generation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
STORED_SIZES_TMPL_solaris_amd64=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-solaris-i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
WRAPPER_GENERATOR_JAVA=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/WrapperGenerator.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
$(SIZERS): $(SIZERS_C) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
	$(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
$(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
	$(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
$(SIZERS_C): $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
	$(MKDIR) -p $(WRAPPER_GENERATOR_TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
	$(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
	    $(SIZER_DIR) $(XLIBTYPES) "sizer" $(subst .,,$(suffix $(basename $@)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
$(SIZES): $(SIZERS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
	@if [ "$(DOHACK)$@" = "true$(PREDEFINED_SIZES)" ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
	    $(ECHO) COPYING $(PREDEFINED_SIZES_TMPL) into $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
	    $(CP) $(PREDEFINED_SIZES_TMPL) $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
	    $(CHMOD) +w $@;\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
	else	\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
	    $(ECHO) GENERATING $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
	    $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
	fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
	@if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
	    $(ECHO) COMPARING $@ and $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
	    $(DIFF) $@ $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
133
99b9bf838505 6630878: clean target in sun/xawt is incomplete
son
parents: 2
diff changeset
   256
	fi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
$(TEMPDIR)/.gen.wrappers: $(SIZES) $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
	$(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
	    $(GEN_DIR) $(XLIBTYPES) "gen" $(WRAPPER_GENERATOR_DIR)/sizes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
touch.wrappers: $(TEMPDIR)/.gen.wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
	$(MKDIR) -p $(TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
	$(TOUCH) $(TEMPDIR)/.gen.wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
133
99b9bf838505 6630878: clean target in sun/xawt is incomplete
son
parents: 2
diff changeset
   266
generated.clean:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
	$(RM) -r $(WRAPPER_GENERATOR_TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
	$(RM) -r $(WRAPPER_GENERATOR_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
	$(RM) -r $(GEN_DIR)/*.java
133
99b9bf838505 6630878: clean target in sun/xawt is incomplete
son
parents: 2
diff changeset
   270
	$(RM) -r $(TEMPDIR)/.gen_icons
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    ICONS_PATH_PREFIX=$(PLATFORM_SRC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
    ICONS_PATH_PREFIX=$(CLOSED_SRC)/solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
ICONS = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon16.png \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon24.png \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon32.png \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon48.png
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
2472
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   284
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   285
ICONPATH=$(PLATFORM_SRC)/classes/sun/awt/X11
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   286
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   287
ICONS += \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   288
   $(ICONPATH)/security-icon-bw16.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   289
   $(ICONPATH)/security-icon-interim16.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   290
   $(ICONPATH)/security-icon-yellow16.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   291
   $(ICONPATH)/security-icon-bw24.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   292
   $(ICONPATH)/security-icon-interim24.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   293
   $(ICONPATH)/security-icon-yellow24.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   294
   $(ICONPATH)/security-icon-bw32.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   295
   $(ICONPATH)/security-icon-interim32.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   296
   $(ICONPATH)/security-icon-yellow32.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   297
   $(ICONPATH)/security-icon-bw48.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   298
   $(ICONPATH)/security-icon-interim48.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   299
   $(ICONPATH)/security-icon-yellow48.png
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   300
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
TEMPDIR_CLASSES = $(TEMPDIR)/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
$(TEMPDIR_CLASSES)/sun/awt/X11/ToBin.class: ToBin.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
	$(BOOT_JAVAC_CMD) -d $(TEMPDIR_CLASSES) $<
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
$(TEMPDIR)/.gen_icons: $(TEMPDIR_CLASSES)/sun/awt/X11/ToBin.class $(ICONS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
	for i in $(ICONS); do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
            filename=`basename $$i`; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
	    name=`$(ECHO) $$filename | $(TR) '\-.' '__'`;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
            classname=$(GEN_DIR)/XAWTIcon32_$$name.java; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
	    $(RM) $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
	    $(ECHO) "package sun.awt.X11;" >> $$classname ; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
	    $(ECHO) "public class XAWTIcon32_$$name {" >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
	    $(ECHO) "public static int[] $$name = { " >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
	    $(CAT) $$i | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
	      $(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
		-Djava.awt.headless=true \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
		sun.awt.X11.ToBin >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
	    $(ECHO) "}; }" >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
            classname=$(GEN_DIR)/XAWTIcon64_$$name.java; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
	    $(RM) $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
	    $(ECHO) "package sun.awt.X11;" >> $$classname ; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
	    $(ECHO) "public class XAWTIcon64_$$name {" >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
	    $(ECHO) "public static long[] $$name = { " >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
	    $(CAT) $$i | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
	      $(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
		-Djava.awt.headless=true \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
		sun.awt.X11.ToBin >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
	    $(ECHO) "}; }" >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
	done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
	$(TOUCH) $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
clean clobber:: generated.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.PHONY: generated.clean robot_child
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338