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 163 - (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 163 default: $(SML)
12 :    
13 : monnier 162 $(BINDIR).new:
14 :     if [ -d $(BINDIR) ]; then \
15 :     mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR) ;\
16 :     else \
17 :     mkdir $(BINDIR).new ;\
18 :     fi
19 :    
20 : monnier 157 $(SML): $(BINDIR)/COMPLIST
21 :     -rm -f $@
22 :     ./xmakeml
23 :    
24 : monnier 162 $(BINDIR)/COMPLIST: $(BINDIR).new
25 : monnier 157
26 : monnier 162 cleannew: $(BINDIR).new
27 :     -rm $(BINDIR).new/*
28 :    
29 : monnier 157 recompile: $(SML)
30 :     mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
31 : monnier 162 -echo '$(MLCMD); Compiler.Stats.summary();' | ./xrun sml
32 :     if [ -f $(BINDIR)/COMPLIST ]; then \
33 :     mv $(SML) sml-old.$(HEAP_SUFFIX) &&\
34 :     ./xmakeml &&\
35 :     mv $(SML) sml-new.$(HEAP_SUFFIX) &&\
36 :     mv sml-old.$(HEAP_SUFFIX) $(SML) ;\
37 :     fi
38 : monnier 157 mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)
39 :    
40 :     run: $(SML)
41 :     mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
42 :     ./xrun $(SML)
43 :     mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)

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