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

SCM Repository

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

Annotation of /sml/trunk/src/compiler/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 162 - (view) (download)

1 : monnier 162 arch_n_opsys := $(shell ../../bin/.arch-n-opsys)
2 :     ARCH := $(shell eval "$(arch_n_opsys)"; echo -n $$ARCH)
3 :     HEAP_SUFFIX := $(shell eval "$(arch_n_opsys)"; echo -n $$HEAP_SUFFIX)
4 :     BINDIR_SUFFIX=$(ARCH)-unix
5 :    
6 :     # don't ask me why bindir_suffix <> heap_suffix
7 :     SML=sml.$(HEAP_SUFFIX)
8 :     BINDIR=bin.$(BINDIR_SUFFIX)
9 : monnier 157 MLCMD=CMB.make()
10 :    
11 : monnier 162 $(BINDIR).new:
12 :     if [ -d $(BINDIR) ]; then \
13 :     mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR) ;\
14 :     else \
15 :     mkdir $(BINDIR).new ;\
16 :     fi
17 :    
18 : monnier 157 $(SML): $(BINDIR)/COMPLIST
19 :     -rm -f $@
20 :     ./xmakeml
21 :    
22 : monnier 162 $(BINDIR)/COMPLIST: $(BINDIR).new
23 : monnier 157
24 : monnier 162 cleannew: $(BINDIR).new
25 :     -rm $(BINDIR).new/*
26 :    
27 : monnier 157 recompile: $(SML)
28 :     mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
29 : monnier 162 -echo '$(MLCMD); Compiler.Stats.summary();' | ./xrun sml
30 :     if [ -f $(BINDIR)/COMPLIST ]; then \
31 :     mv $(SML) sml-old.$(HEAP_SUFFIX) &&\
32 :     ./xmakeml &&\
33 :     mv $(SML) sml-new.$(HEAP_SUFFIX) &&\
34 :     mv sml-old.$(HEAP_SUFFIX) $(SML) ;\
35 :     fi
36 : monnier 157 mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)
37 :    
38 :     run: $(SML)
39 :     mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
40 :     ./xrun $(SML)
41 :     mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)

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