blob: f8e5e0c150a30d77d1097864f399da675273d7c8 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2# Copyright 1998-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 = javax.swing.plaf
28PRODUCT = com
29SWING_SRC = $(SHARE_SRC)/classes/javax/swing
30include $(BUILDDIR)/common/Defs.gmk
31
32#
33# Files
34#
35include FILES.gmk
36AUTO_FILES_JAVA_DIRS = javax/swing/plaf sun/swing com/sun/java/swing/plaf
37ifeq ($(PLATFORM), windows)
38 # Don't build GTK L&F on Windows
39 AUTO_JAVA_PRUNE = gtk
40endif
41
42MISC_FILES = $(MISC_SWING_FILES)
43ifneq ($(PLATFORM), windows)
44 # Only include GTK icons on Solaris/Linux
45 MISC_FILES += $(MISC_SWING_FILES_UNIX)
46endif
47
48FILES_java = $(FILES_SWING_java)
49
50#
51# Resources
52#
53LOCALE_SET_DEFINITION = jre
54RESOURCE_BUNDLES_COMPILED_PROPERTIES = \
55 com/sun/swing/internal/plaf/basic/resources/basic.properties \
56 com/sun/swing/internal/plaf/metal/resources/metal.properties \
57 com/sun/swing/internal/plaf/synth/resources/synth.properties \
58 com/sun/java/swing/plaf/motif/resources/motif.properties \
59 com/sun/java/swing/plaf/windows/resources/windows.properties
60ifneq ($(PLATFORM), windows)
61 # Only compile GTK resource bundles on Solaris/Linux
62 RESOURCE_BUNDLES_COMPILED_PROPERTIES += \
63 com/sun/java/swing/plaf/gtk/resources/gtk.properties
64endif
65
66#
67# Rules.
68# Process LOGO_ICONS and Motif Icons first.
69#
70build: $(LOGO_ICONS) $(MISC_SWING_FILES_MOTIF_GIF) $(MISC_SWING_FILES_MOTIF_PNG) other_files
71
72clean:: classes.clean
73
74#
75# Include
76#
77include $(BUILDDIR)/common/Classes.gmk
78
79ifndef OPENJDK
80$(LOGO_ICONS): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png
81 $(install-file)
82
83$(MISC_SWING_FILES_MOTIF_GIF): $(CLASSBINDIR)/%.gif: $(CLOSED_SRC)/share/classes/%.gif
84 $(install-file)
85
86$(MISC_SWING_FILES_MOTIF_PNG): $(CLASSBINDIR)/%.png: $(CLOSED_SRC)/share/classes/%.png
87 $(install-file)
88endif
89
90other_files: $(MISC_FILES)
91
92$(CLASSBINDIR)/%.wav: $(SHARE_SRC)/classes/%.wav
93 $(install-file)
94
95$(CLASSBINDIR)/%.gif: $(SHARE_SRC)/classes/%.gif
96 $(install-file)
97
98$(CLASSBINDIR)/%.png: $(SHARE_SRC)/classes/%.png
99 $(install-file)
100
101$(CLASSBINDIR)/%.xml: $(SHARE_SRC)/classes/%.xml
102 $(install-file)
103
104$(CLASSBINDIR)/%.css: $(SHARE_SRC)/classes/%.css
105 $(install-file)
106
107$(CLASSBINDIR)/%.bdtd: $(SHARE_SRC)/classes/%.bdtd
108 $(install-file)
109
110$(CLASSBINDIR)/%.txt: $(SHARE_SRC)/classes/%.txt
111 $(install-file)
112