#
# @(#)GNUmakefile	1.63 98/10/06
#
# Makefile for building all of sun tools
#

BUILDDIR = ..
PRODUCT  = sun
include $(BUILDDIR)/Platform.gmk
include $(BUILDDIR)/makefiles/Defs.gmk

ifdef JAE_ONLY
TOOLS_SUBDIRS =
else
TOOLS_SUBDIRS = toolsutil javap debug native2ascii serialver jdb
endif

HAVE_DGA=true
ifeq ($(HAVE_DGA),true)
DGA_SUBDIR = jdga
endif

SUBDIRS = security jar misc net audio dcpr image awt $(DGA_SUBDIR) font jpeg \
	  cmm applet rmi beans jdbc $(TOOLS_SUBDIRS)

all optimized debug clean clobber ::
	@for i in $(SUBDIRS) ; do \
	    echo ">>>Recursively making "$$i" "$@" @ `date` ..."; \
	    cd $$i; $(MAKE) $@ RELEASE=$(RELEASE) || exit 1; cd ..; \
	    echo "<<<Finished Recursively making "$$i" "$@" @ `date`." ; \
	done

clean clobber:: 
	rm -rf $(LIBDIR) $(BINDIR) $(CLASSBINDIR)
