|
1 # |
|
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 |
|
26 BUILDDIR = ../.. |
|
27 PACKAGE = java.awt |
|
28 PRODUCT = sun |
|
29 include $(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 # |
|
36 AUTO_FILES_JAVA_DIRS = java/awt sun/awt/geom |
|
37 |
|
38 # |
|
39 # Specific to OPENJDK |
|
40 # |
|
41 ifdef OPENJDK |
|
42 |
|
43 build: import-binary-plug-awt-classes |
|
44 |
|
45 include $(BUILDDIR)/common/internal/BinaryPlugs.gmk |
|
46 |
|
47 endif |
|
48 |
|
49 build: properties cursors |
|
50 |
|
51 # |
|
52 # Resources |
|
53 # |
|
54 RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/awt/resources/awt.properties |
|
55 LOCALE_SET_DEFINITION = jre |
|
56 |
|
57 # |
|
58 # Rules |
|
59 # |
|
60 include $(BUILDDIR)/common/Classes.gmk |
|
61 |
|
62 |
|
63 clean:: properties.clean sun.geom.clean cursors.clean |
|
64 |
|
65 _LIBPROPS = \ |
|
66 flavormap.properties |
|
67 |
|
68 LIBPROPS = $(_LIBPROPS:%=$(LIBDIR)/%) |
|
69 |
|
70 properties: $(LIBDIR) $(LIBPROPS) |
|
71 |
|
72 $(LIBDIR)/%.properties: $(PLATFORM_SRC)/lib/%.properties |
|
73 $(install-file) |
|
74 |
|
75 properties.clean : |
|
76 $(RM) $(LIBPROPS) |
|
77 |
|
78 .SUFFIXES : $(SUFFIXES) .gif .properties |
|
79 |
|
80 CURSORSRC = $(TOPDIR)/src/share/lib/images/cursors |
|
81 CURSORDIR = $(LIBDIR)/images/cursors |
|
82 |
|
83 ifeq ($(PLATFORM), windows) |
|
84 CURSORPROPSRC = $(TOPDIR)/src/windows/lib/images/cursors |
|
85 CURSORS = $(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 |
|
92 else # PLATFORM |
|
93 CURSORPROPSRC = $(TOPDIR)/src/solaris/lib/images/cursors |
|
94 CURSORS = $(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 |
|
101 endif # PLATFORM |
|
102 |
|
103 $(CURSORDIR)/cursors.properties : $(CURSORPROPSRC)/cursors.properties |
|
104 $(install-file) |
|
105 |
|
106 $(CURSORDIR)/%.gif : $(CURSORSRC)/%.gif |
|
107 $(install-file) |
|
108 |
|
109 cursors : $(CURSORDIR)/cursors.properties $(CURSORS) |
|
110 |
|
111 sun.geom.clean : |
|
112 $(RM) -r $(CLASSBINDIR)/sun/awt/geom |
|
113 |
|
114 cursors.clean : |
|
115 $(RM) -r $(CURSORDIR) |
|
116 |
|
117 .PHONY: properties properties.clean \ |
|
118 cursors sun.geom.clean cursors.clean |
|
119 |