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

BUILDDIR = ..
include $(BUILDDIR)/Platform.gmk

PRODUCT = java

include $(BUILDDIR)/makefiles/Defs.gmk

ifdef JAE_ONLY
TOOLS_SUBDIRS = 
else
TOOLS_SUBDIRS = javac javah
endif

#
# The order of subdirs here is important -- we want to bootstrap as
# quickly as possible.
#

# Bootstrap
BOOTSUBDIRS = hpi jvm fdlibm java main redist zip $(TOOLS_SUBDIRS)

# Others
SUBDIRS     = $(BOOTSUBDIRS) security hprof math text awt applet net sql \
	   		     rmi jar beans

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

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