SUBDIRS	= Obj-g++-$(HOSTTYPE)

default: all

all:
	$(foreach dir,$(SUBDIRS),$(MAKE) $(MFLAGS) -C $(dir) ; )

config:
	config.awe2 $(HOSTTYPE)

examples:
	$(MAKE) $(MFLAGS) -C Examples depend
	$(MAKE) $(MFLAGS) -C Examples

depend:
	$(foreach dir,$(SUBDIRS),$(MAKE) $(MFLAGS) -C $(dir) depend; )

forcedepend:
	$(foreach dir,$(SUBDIRS),rm $(dir)/*.dep ; $(MAKE) $(MFLAGS) -C $(dir) depend; )

install:
	$(foreach dir,$(SUBDIRS),$(MAKE) $(MFLAGS) -C $(dir) install; )

clean:
	$(foreach dir,$(SUBDIRS),rm -f $(dir)/*.o $(dir)/*.dep $(dir)/core;)

TARFILES= \
	Install GNUmakefile config.awe2 \
	Overview.txt hier.dvi hier.ps Documentation\
	Examples  \
	Src/*.cc Src/*.c Src/*.h Src/GNU* 
#	Obj-g++-sun4 Obj-g++-dec-mips

FTPDIR	=/srl/ftp/pub/Awesime

FTPVERSION	=0.14

FTPFILE	=$(FTPDIR)/awe2-$(FTPVERSION).tar.Z

tar:
	-mkdir $(FTPDIR)
	-rm -f $(FTPFILE)
	gnutar czf $(FTPFILE) $(TARFILES)

tarclean:
	$(MAKE) $(MFLAGS) -C Examples clean
