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