Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/Makefile_mlton.in
ViewVC logotype

Diff of /branches/vis15/src/compiler/Makefile_mlton.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3722, Mon Apr 4 20:34:13 2016 UTC revision 3726, Mon Apr 4 23:41:00 2016 UTC
# Line 37  Line 37 
37  @SET_MAKE@  @SET_MAKE@
38    
39  MLTON =         @MLTON@  MLTON =         @MLTON@
40    MLTON_FLAGS =   -const 'Exn.keepHistory true'
41    
42  #### End of system configuration section. ####  #### End of system configuration section. ####
43    
# Line 50  Line 51 
51  #  #
52  # preprocess files that contain UTF-8 multibyte sequences  # preprocess files that contain UTF-8 multibyte sequences
53  #  #
54  UTF8_FILES =    parse-tree/operators.sml  UTF8_FILES =    cfg-ir/dom-tree-fn.sml \
55                    ein/ein-pp.sml \
56                    parse-tree/operators.sml \
57                    typechecker/check-expr.sml
58  EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))  EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))
59    
60  CODE_FRAG_FILES =  CODE_FRAG_FILES =
# Line 67  Line 71 
71  build:          $(PROGRAM)  build:          $(PROGRAM)
72    
73  $(PROGRAM): $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)  $(PROGRAM): $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)
74          $(MLTON) -output $(PROGRAM) $(ROOT_MLB)          $(MLTON) $(MLTON_FLAGS) -output $(PROGRAM) $(ROOT_MLB)
75    
76  .PHONY:         typecheck  .PHONY:         typecheck
77  typecheck:      $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)  typecheck:      $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)
78          $(MLTON) -stop tc $(ROOT_MLB)          $(MLTON) -stop tc $(MLTON_FLAGS) $(ROOT_MLB)
79    
80  #  #
81  # Generate the scanner and parser from specs  # Generate the scanner and parser from specs
# Line 85  Line 89 
89  #  #
90  # preprocess files that contain UTF-8 multibyte sequences  # preprocess files that contain UTF-8 multibyte sequences
91  #  #
 UTF8_FILES =    parse-tree/operators.sml  
 EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))  
92    
93  $(EXPANDED_FILES): %_mlton.sml: %.sml expand-utf8  $(EXPANDED_FILES): %_mlton.sml: %.sml expand-utf8
94          expand-utf8 < $< > $@          expand-utf8 < $< > $@
# Line 101  Line 103 
103  CLEAN_SUBDIRS =  CLEAN_SUBDIRS =
104    
105  CLEAN_FILES +=          $(PROGRAM) \  CLEAN_FILES +=          $(PROGRAM) \
                         */*.grm.sml \  
                         */*.lex.sml \  
106                          $(CODE_FRAG_FILES) \                          $(CODE_FRAG_FILES) \
107                            $(PARSER_FILES) \
108                            $(EXPANDED_FILES) \
109                          expand-utf8                          expand-utf8
110    
111  DISTCLEAN_FILES +=      Makefile \  DISTCLEAN_FILES +=      Makefile \

Legend:
Removed from v.3722  
changed lines
  Added in v.3726

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