###############################################################################
#
# Makefile
#
# Make program to build various tools for the Aldor compiler
#
# Copyright Aldor.org 1990-2007.
#
###############################################################################
#
# Targets: all, junk, clean
#
#    make all   -- make the various tools for the Aldor compiler
#    make junk  -- list files which are not part of the tools
#    make clean -- remove generated files  (e.g. foo.c~)
#
###############################################################################

MAKEFILE=NMakefile

OKFILES = Makefile NMakefile Makefile.win32 port unix win32

all::	portdir win32dir

clean::
	cd $(ALDORTOOLS)
	del /s y.tab.h y.tab.c lex.yy.c *.o *~
	cd ..

portdir:
	@cd port
	@$(MAKE) -nologo -f$(MAKEFILE) all
	@cd ..
clean::
	@cd port
	@$(MAKE) -nologo -f$(MAKEFILE) clean
	@cd ..

win32dir:
	@cd win32
	@$(MAKE) -nologo -f$(MAKEFILE) all
	@cd ..
clean::
	@cd win32
	@$(MAKE) -nologo -f$(MAKEFILE) clean
	@cd ..

