jdk/make/sun/xawt/Makefile
author michaelm
Fri, 23 Mar 2012 11:28:58 +0000
changeset 12292 0066b3386371
parent 12050 28109b684ac0
child 12749 edd0b9d5e304
permissions -rw-r--r--
7155585: Fix ifeq errors in makefiles [macosx] Reviewed-by: andrew, anthony, ohrstrom, dsamersoff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8583
diff changeset
     2
# Copyright (c) 2002, 2011, 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 = ../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
PACKAGE = sun.awt.X11
11665
98dad53a8ba1 7110002: Rename xawt/libmawt.so and headless/libmawt.so so they can be colocated with libawt
chegar
parents: 9050
diff changeset
    28
LIBRARY = awt_xawt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
PRODUCT = sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
GEN_DIR=$(GENSRCDIR)/sun/awt/X11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
CLASSES_INIT += $(TEMPDIR)/.gen.wrappers $(TEMPDIR)/.gen_icons touch.wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.PHONY: generated.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
# Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
include FILES_c_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
include FILES_export_unix.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
AUTO_FILES_JAVA_DIRS = sun/awt/X11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
AUTO_JAVA_PRUNE = WrapperGenerator.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
LDFLAGS += -L$(OPENWIN_LIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
5579
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    49
# For Xrender extension.
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    50
ifeq ($(PLATFORM), solaris)
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    51
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
    52
endif
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
    53
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
LDFLAGS += -lpthread
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
12292
0066b3386371 7155585: Fix ifeq errors in makefiles [macosx]
michaelm
parents: 12050
diff changeset
    59
ifeq ($(PLATFORM), macosx)
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
    60
LDFLAGS += -pthread
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
    61
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION))
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
    62
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
    63
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
# Since this library will be living in a subdirectory below the other libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#   we need to add an extra runpath so that libraries in the upper directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#   are found at runtime.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
LD_RUNPATH_EXTRAS = ..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
# Rules.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
# Add to the ambient vpath to pick up files in subdirectories
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
vpath %.c   $(SHARE_SRC)/native/sunawt/alphacomposite
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
vpath %.c   $(PLATFORM_SRC)/native/sun/xawt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
vpath %.c   $(PLATFORM_SRC)/native/sun/awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
vpath %.c   $(SHARE_SRC)/native/sun/awt/debug
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
vpath %.c   $(SHARE_SRC)/native/sun/awt/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
vpath %.c   $(SHARE_SRC)/native/sun/awt/image/gif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
vpath %.c   $(SHARE_SRC)/native/sun/awt/image/cvutils
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
vpath %.c   $(SHARE_SRC)/native/sun/awt/shell
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
vpath %.c   $(SHARE_SRC)/native/sun/java2d
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
vpath %.c   $(SHARE_SRC)/native/sun/java2d/loops
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
vpath %.c   $(SHARE_SRC)/native/sun/java2d/pipe
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
vpath %.c   $(SHARE_SRC)/native/sun/awt/medialib
2472
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
    90
vpath %.c   $(SHARE_SRC)/native/sun/awt/utility
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
vpath %.cpp $(SHARE_SRC)/native/sun/image
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
vpath %.c   $(SHARE_SRC)/native/sun/font
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
vpath %.c   $(PLATFORM_SRC)/native/sun/awt/robot_child
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
vpath %.c   $(SHARE_SRC)/native/sun/java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
vpath %.c   $(PLATFORM_SRC)/native/sun/java2d/opengl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
vpath %.c   $(PLATFORM_SRC)/native/sun/java2d/x11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
    98
OTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                   $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
ifeq  ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
CPPFLAGS += -DFUNCPROTO=15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
CPPFLAGS += -I$(CUPS_HEADERS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
CPPFLAGS += -DXAWT -DXAWT_HACK \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        -I$(TEMPDIR)/../../sun.awt/awt/CClassHeaders \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        -I$(PLATFORM_SRC)/native/sun/awt \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
	-I$(PLATFORM_SRC)/native/sun/xawt \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        -I$(PLATFORM_SRC)/native/sun/jdga \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        -I$(SHARE_SRC)/native/sun/awt/debug \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        -I$(SHARE_SRC)/native/sun/awt/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        -I$(SHARE_SRC)/native/sun/java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
	-I$(SHARE_SRC)/native/sun/java2d/loops \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
	-I$(SHARE_SRC)/native/sun/awt/image/cvutils \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
	-I$(SHARE_SRC)/native/sun/awt/image \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
	-I$(SHARE_SRC)/native/sun/font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
	-I$(PLATFORM_SRC)/native/sun/java2d \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
	-I$(SHARE_SRC)/native/sun/java2d/pipe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
	-I$(SHARE_SRC)/native/sun/java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
	-I$(PLATFORM_SRC)/native/sun/java2d/opengl \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
	-I$(PLATFORM_SRC)/native/sun/java2d/x11 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
	-I$(SHARE_SRC)/native/sun/dc/path \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
	-I$(SHARE_SRC)/native/sun/dc/doe \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
	-I$(SHARE_SRC)/native/sun/awt/alphacomposite \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        -I$(SHARE_SRC)/native/sun/awt/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
	-I$(PLATFORM_SRC)/native/sun/awt/medialib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        -I$(PLATFORM_SRC)/native/sun/font \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        -I$(SHARE_SRC)/native/sun/awt \
5579
1a5e995a710b 6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents: 4665
diff changeset
   132
        -I$(PLATFORM_SRC)/native/sun/awt
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
ifeq ($(PLATFORM), linux)
9002
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   135
  ifndef CROSS_COMPILE_ARCH
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   136
    # Allows for builds on Debian GNU Linux, X11 is in a different place 
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   137
    # This should really be handled at a higher-level so we don't have to
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   138
    # work-around this when cross-compiling
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   139
    CPPFLAGS += -I/usr/X11R6/include/X11/extensions \
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   140
                -I/usr/include/X11/extensions \
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   141
                -I$(OPENWIN_HOME)/include 
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   142
  else
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   143
    CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   144
                -I$(OPENWIN_HOME)/include 
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   145
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
7933
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   148
# We have some odd logic here because some Solaris 10 updates
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   149
# have a render.h file that suggests gradients are supported, but
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   150
# the Xrender.h doesn't have the corresponding type definitions.
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   151
# Earlier updates have neither. We'd like to know if there's a mismatch.
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   152
# Whilst in the C preprocessor we can tell if the render.h define's are set
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   153
# we can't tell anything about C declarations.
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   154
# A grep of Xrender.h is the only way to know this. If they are absent
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   155
# we will set a flag indicating this mismatch and the JDK source file
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   156
# will interpret it to resolve the problem.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
  CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
7933
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   159
  OS_VERSION := $(shell uname -r)
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   160
  XRENDER_H := $(OPENWIN_HOME)/share/include/X11/extensions/Xrender.h
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   161
  ifeq ($(OS_VERSION),5.10) 
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   162
     LINEARGRADIENT_CNT := $(shell $(EGREP) -c XLinearGradient $(XRENDER_H))
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   163
     ifeq ($(LINEARGRADIENT_CNT),0) 
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   164
       CFLAGS+= -DSOLARIS10_NO_XRENDER_STRUCTS
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   165
     endif
afae9398b405 7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents: 7668
diff changeset
   166
 endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   169
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   170
  CPPFLAGS += -DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   171
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   172
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
ifeq ($(MILESTONE), internal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
  CPPFLAGS += -DINTERNAL_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
# Generation of wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
SIZER_DIR=$(GEN_DIR)/generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
SIZER = $(SIZER_DIR)/sizer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
SIZER_32_C = $(SIZER).32.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
SIZER_64_C = $(SIZER).64.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
CFLAGS_32=$(CFLAGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
CFLAGS_64=$(CFLAGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
isalist:=$(shell $(ISAINFO))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
ifneq (,$(findstring sparcv9, $(isalist)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
# On sparcv9 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
# 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
   194
CFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
SIZERS = $(SIZER).32 $(SIZER).64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
CFLAGS_64=$(CFLAGS) $(XARCH_OPTION/64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
ifneq (,$(findstring amd64, $(isalist)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
# On amd64 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
# 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
   203
CFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
SIZERS = $(SIZER).32 $(SIZER).64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
CFLAGS_64=$(CFLAGS) $(XARCH_OPTION/64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
else # !sparcv9 : includes (32-bit) sparc, i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
SIZERS = $(SIZER).32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
SIZERS_C = $(SIZER_32_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
endif # amd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
endif # sparcv9
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
else # !solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   217
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   218
CFLAGS_32=-arch i386
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   219
SIZERS = $(SIZER).32 $(SIZER).64
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   220
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   221
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   222
CFLAGS_64=-arch x86_64
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   223
else # !macosx
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
SIZERS = $(SIZER).32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
SIZERS_C = $(SIZER_32_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
else # !32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
SIZERS = $(SIZER).64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
SIZERS_C = $(SIZER_64_C)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
endif # 32
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   233
endif # !macosx
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
endif # solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
# XXX Hack for 6185483 - use hard-coded sizes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
# Add the 64-bit platforms that need to be included into 32-bit build
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
# and have sizes.64-$(PLATFORM)-$(LIBARCH) hardcoded in the workspace
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
ifeq ($(PLATFORM)-$(LIBARCH), solaris-i386)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
# If you define DOHACK=true for some combination of $(PLATFORM)-$(LIBARCH),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
# make sure you have sizes.64-$(PLATFORM)-$(LIBARCH) pre-generated in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
# $(PLATFORM_SRC)/classes/sun/awt/X11/generator/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
DOHACK=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
endif # Hack
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
ifeq ($(DOHACK), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
PREDEFINED_SIZES_TMPL=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-$(PLATFORM)-$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
PREDEFINED_SIZES=$(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
SIZES += $(WRAPPER_GENERATOR_DIR)/sizes.64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
DOCOMPARE=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
# 64 bit sizers are generated on platform-libarch (left) for use 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
# on platform-libarch (right) and stored under the latter name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
# Do compare manually stored and automatically generated pair(s) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
# if DOCOMPARE=true, just after the generation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
STORED_SIZES_TMPL_solaris_amd64=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-solaris-i386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
WRAPPER_GENERATOR_JAVA=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/WrapperGenerator.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
$(SIZERS): $(SIZERS_C) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
	$(prep-target)
9002
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   269
ifndef CROSS_COMPILE_ARCH
12044
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 11665
diff changeset
   270
	$(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 11665
diff changeset
   271
	$(CC) $(CFLAGS_$(subst .,,$(suffix $@))) -o $@ $(CPPFLAGS) $(SIZER)$(suffix $@).o
9002
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   272
else
12044
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 11665
diff changeset
   273
	$(HOST_CC) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 11665
diff changeset
   274
	$(HOST_CC) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).o
9002
6ee0abf0167f 7030063: AWT support for SE-Embedded integration
dholmes
parents: 8583
diff changeset
   275
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
$(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
	$(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
$(SIZERS_C): $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
	$(MKDIR) -p $(WRAPPER_GENERATOR_TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
	$(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
	    $(SIZER_DIR) $(XLIBTYPES) "sizer" $(subst .,,$(suffix $(basename $@)))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
$(SIZES): $(SIZERS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
	@if [ "$(DOHACK)$@" = "true$(PREDEFINED_SIZES)" ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
	    $(ECHO) COPYING $(PREDEFINED_SIZES_TMPL) into $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
	    $(CP) $(PREDEFINED_SIZES_TMPL) $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
	    $(CHMOD) +w $@;\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
	else	\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
	    $(ECHO) GENERATING $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
	    $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
	fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
	@if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
	    $(ECHO) COMPARING $@ and $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
	    $(DIFF) $@ $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
133
99b9bf838505 6630878: clean target in sun/xawt is incomplete
son
parents: 2
diff changeset
   299
	fi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
$(TEMPDIR)/.gen.wrappers: $(SIZES) $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
	$(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
	    $(GEN_DIR) $(XLIBTYPES) "gen" $(WRAPPER_GENERATOR_DIR)/sizes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
touch.wrappers: $(TEMPDIR)/.gen.wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
	$(MKDIR) -p $(TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
	$(TOUCH) $(TEMPDIR)/.gen.wrappers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
133
99b9bf838505 6630878: clean target in sun/xawt is incomplete
son
parents: 2
diff changeset
   309
generated.clean:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
	$(RM) -r $(WRAPPER_GENERATOR_TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
	$(RM) -r $(WRAPPER_GENERATOR_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
	$(RM) -r $(GEN_DIR)/*.java
133
99b9bf838505 6630878: clean target in sun/xawt is incomplete
son
parents: 2
diff changeset
   313
	$(RM) -r $(TEMPDIR)/.gen_icons
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
    ICONS_PATH_PREFIX=$(PLATFORM_SRC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
    ICONS_PATH_PREFIX=$(CLOSED_SRC)/solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
ICONS = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon16.png \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon24.png \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon32.png \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
    $(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon48.png
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
2472
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   327
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   328
ICONPATH=$(PLATFORM_SRC)/classes/sun/awt/X11
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   329
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   330
ICONS += \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   331
   $(ICONPATH)/security-icon-bw16.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   332
   $(ICONPATH)/security-icon-interim16.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   333
   $(ICONPATH)/security-icon-yellow16.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   334
   $(ICONPATH)/security-icon-bw24.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   335
   $(ICONPATH)/security-icon-interim24.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   336
   $(ICONPATH)/security-icon-yellow24.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   337
   $(ICONPATH)/security-icon-bw32.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   338
   $(ICONPATH)/security-icon-interim32.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   339
   $(ICONPATH)/security-icon-yellow32.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   340
   $(ICONPATH)/security-icon-bw48.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   341
   $(ICONPATH)/security-icon-interim48.png \
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   342
   $(ICONPATH)/security-icon-yellow48.png
b7aba00cabb6 6693253: Security Warning appearance requires enhancements
anthony
parents: 133
diff changeset
   343
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
TEMPDIR_CLASSES = $(TEMPDIR)/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
$(TEMPDIR_CLASSES)/sun/awt/X11/ToBin.class: ToBin.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
	$(BOOT_JAVAC_CMD) -d $(TEMPDIR_CLASSES) $<
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
$(TEMPDIR)/.gen_icons: $(TEMPDIR_CLASSES)/sun/awt/X11/ToBin.class $(ICONS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
	for i in $(ICONS); do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
            filename=`basename $$i`; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
	    name=`$(ECHO) $$filename | $(TR) '\-.' '__'`;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
            classname=$(GEN_DIR)/XAWTIcon32_$$name.java; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
	    $(RM) $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
	    $(ECHO) "package sun.awt.X11;" >> $$classname ; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
	    $(ECHO) "public class XAWTIcon32_$$name {" >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
	    $(ECHO) "public static int[] $$name = { " >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
	    $(CAT) $$i | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
	      $(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
		-Djava.awt.headless=true \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
		sun.awt.X11.ToBin >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
	    $(ECHO) "}; }" >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
            classname=$(GEN_DIR)/XAWTIcon64_$$name.java; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
	    $(RM) $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
	    $(ECHO) "package sun.awt.X11;" >> $$classname ; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
	    $(ECHO) "public class XAWTIcon64_$$name {" >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
	    $(ECHO) "public static long[] $$name = { " >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
	    $(CAT) $$i | \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
	      $(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES)  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
		-Djava.awt.headless=true \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
		sun.awt.X11.ToBin >> $$classname; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
	    $(ECHO) "}; }" >> $$classname;  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
	done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
	$(TOUCH) $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
clean clobber:: generated.clean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.PHONY: generated.clean robot_child
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381