#
# @(#)GNUmakefile	1.10 98/10/06
#
# Makefile for building all of java
#

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

ifdef JAE_ONLY
TOOLS_SUBDIRS =
else
TOOLS_SUBDIRS = javadoc javah extcheck
endif

SUBDIRS = image $(TOOLS_SUBDIRS)

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

clean ::
	rm -fr $(LIBDIR) $(BINDIR) $(CLASSBINDIR)
