blob: f59ea7817a83313cc2a60ce423c8ab772bdf64ac [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# This code is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation. Sun designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Sun in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22# CA 95054 USA or visit www.sun.com if you need additional information or
23# have any questions.
24#
25
26BUILDDIR = ../..
27PACKAGE = java.awt
28PRODUCT = sun
29include $(BUILDDIR)/common/Defs.gmk
30
31# WARNING: Make sure the OPENJDK plugs are up-to-date, see make/common/internal/BinaryPlugs.gmk
32
33#
34# Files
35#
36AUTO_FILES_JAVA_DIRS = java/awt sun/awt/geom
37
38#
39# Specific to OPENJDK
40#
41ifdef OPENJDK
42
43build: import-binary-plug-awt-classes
44
45include $(BUILDDIR)/common/internal/BinaryPlugs.gmk
46
47endif
48
49build: properties cursors
50
51#
52# Resources
53#
54RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/awt/resources/awt.properties
55LOCALE_SET_DEFINITION = jre
56
57#
58# Rules
59#
60include $(BUILDDIR)/common/Classes.gmk
61
62
63clean:: properties.clean sun.geom.clean cursors.clean
64
65_LIBPROPS = \
66 flavormap.properties
67
68LIBPROPS = $(_LIBPROPS:%=$(LIBDIR)/%)
69
70properties: $(LIBDIR) $(LIBPROPS)
71
72$(LIBDIR)/%.properties: $(PLATFORM_SRC)/lib/%.properties
73 $(install-file)
74
75properties.clean :
76 $(RM) $(LIBPROPS)
77
78.SUFFIXES : $(SUFFIXES) .gif .properties
79
80CURSORSRC = $(TOPDIR)/src/share/lib/images/cursors
81CURSORDIR = $(LIBDIR)/images/cursors
82
83ifeq ($(PLATFORM), windows)
84CURSORPROPSRC = $(TOPDIR)/src/windows/lib/images/cursors
85CURSORS = $(CURSORDIR)/win32_CopyDrop32x32.gif \
86 $(CURSORDIR)/win32_MoveDrop32x32.gif \
87 $(CURSORDIR)/win32_LinkDrop32x32.gif \
88 $(CURSORDIR)/win32_CopyNoDrop32x32.gif \
89 $(CURSORDIR)/win32_MoveNoDrop32x32.gif \
90 $(CURSORDIR)/win32_LinkNoDrop32x32.gif \
91 $(CURSORDIR)/invalid32x32.gif
92else # PLATFORM
93CURSORPROPSRC = $(TOPDIR)/src/solaris/lib/images/cursors
94CURSORS = $(CURSORDIR)/motif_CopyDrop32x32.gif \
95 $(CURSORDIR)/motif_MoveDrop32x32.gif \
96 $(CURSORDIR)/motif_LinkDrop32x32.gif \
97 $(CURSORDIR)/motif_CopyNoDrop32x32.gif \
98 $(CURSORDIR)/motif_MoveNoDrop32x32.gif \
99 $(CURSORDIR)/motif_LinkNoDrop32x32.gif \
100 $(CURSORDIR)/invalid32x32.gif
101endif # PLATFORM
102
103$(CURSORDIR)/cursors.properties : $(CURSORPROPSRC)/cursors.properties
104 $(install-file)
105
106$(CURSORDIR)/%.gif : $(CURSORSRC)/%.gif
107 $(install-file)
108
109cursors : $(CURSORDIR)/cursors.properties $(CURSORS)
110
111sun.geom.clean :
112 $(RM) -r $(CLASSBINDIR)/sun/awt/geom
113
114cursors.clean :
115 $(RM) -r $(CURSORDIR)
116
117.PHONY: properties properties.clean \
118 cursors sun.geom.clean cursors.clean
119