# arguments:
#   OS =  the SML/NJ operating system name (eg, mach)
#   MACHINE = the SML/NJ machine name (eg, decstation)
#   FLAGS = miscellaneous flag options (eg, -gcc)
#   SOFTLIMIT = the softlimit (-m) argument to makeml (eg, 7000)
# See doc/release-notes/releaseNotes.{dvi,ps,txt} for information
# on how to set these parameters.
SOFTLIMIT = 7000
most: sml-noshare sml sml-lex sml-yacc sml-tags sml-conn smlsg
sml-noshare:
	makeml -$(MACHINE) $(OS) $(FLAGS) -m $(SOFTLIMIT) -noshare
	mv sml sml-noshare
sml: sml-noshare
	makeml -$(MACHINE) $(OS) $(FLAGS) -m $(SOFTLIMIT) -noclean
sml-yacc: sml-noshare
	(cd ../tools/mlyacc; make ec; make stand-alone)
	cat ../tools/mlyacc/smlyacc.sml | sml-noshare
sml-lex: sml-noshare
	cat ../tools/lexgen/lexgen.sml ../tools/lexgen/export-lex.sml \
	  | sml-noshare
sml-tags: sml-noshare
	cat ../tools/gnutags/export.sml | sml-noshare
sml-conn: sml-noshare
	cat ../tools/sourcegroup/sml-conn/export.sml | sml-noshare
smld: sml-noshare
	makeml -$(MACHINE) $(OS) $(FLAGS) -m $(SOFTLIMIT) -debug -noclean
smlsg: sml
	cat ../tools/sourcegroup/export.sml | sml
