#
# @(#)GNUmakefile	1.13 98/10/06
#
# Build rmi tools, and sun.rmi.* implementation classes

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

ifdef JAE_ONLY
TOOLS_SUBDIRS = 
else
TOOLS_SUBDIRS = rmic
endif

#
# Order is important -- you can't build stubs without building rmic first.
#
SUBDIRS = $(TOOLS_SUBDIRS) rmi registry rmid

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::
	rm -rf $(CLASSBINDIR)/sun/rmi
