Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/compiler/Makefile
ViewVC logotype

View of /sml/trunk/src/compiler/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 184 - (download) (annotate)
Sun Nov 8 21:18:20 1998 UTC (20 years, 8 months ago) by monnier
File size: 1350 byte(s)
* added basic unrolling support
* changed fkind to have most annotations valid on
  functors as well.  It also adds a loopkind annotation as well as extends
  the inline boolean into a three-way alternative.
* switched to a continuation passing style to implement the
  let-associativity rule in a better way.
arch_n_opsys := $(shell ../../bin/.arch-n-opsys)
ARCH := $(shell eval "$(arch_n_opsys)"; echo -n $$ARCH)
HEAP_SUFFIX := $(shell eval "$(arch_n_opsys)"; echo -n $$HEAP_SUFFIX)
BINDIR_SUFFIX=$(ARCH)-unix

# don't ask me why bindir_suffix <> heap_suffix
SML=sml.$(HEAP_SUFFIX)
BINDIR=bin.$(BINDIR_SUFFIX)
MLCMD=CMB.make()

default: sml
sml: $(SML)
sml-new: sml-new.$(HEAP_SUFFIX)

$(BINDIR).new:
	if [ -d $(BINDIR) ]; then \
	    mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR) ;\
	else \
	    mkdir $(BINDIR).new ;\
	fi

$(SML): $(BINDIR)/COMPLIST
	-rm -f $@
	./xmakeml
	[ -r $(SML) ]

$(BINDIR)/COMPLIST: $(BINDIR).new

cleannew: $(BINDIR).new
	-rm -r $(BINDIR).new/*

recompile: $(SML)
	mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
	-echo '$(MLCMD); Compiler.Stats.summary();' | ./xrun sml
	mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)

sml-new.$(HEAP_SUFFIX): recompile
	mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
	if [ -f $(BINDIR)/COMPLIST ]; then \
	    mv $(SML) sml-old.$(HEAP_SUFFIX) &&\
	    ./xmakeml &&\
	    mv $(SML) sml-new.$(HEAP_SUFFIX) &&\
	    mv sml-old.$(HEAP_SUFFIX) $(SML) ;\
	fi
	mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)

run: $(SML)
	mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
	./xrun $(SML)
	mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0