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 3715, Sat Apr 2 17:23:54 2016 UTC revision 3722, Mon Apr 4 20:34:13 2016 UTC
# Line 27  Line 27 
27  LIBDIR =        @DIDEROT_ROOT@/lib  LIBDIR =        @DIDEROT_ROOT@/lib
28  BINDIR =        @DIDEROT_ROOT@/bin  BINDIR =        @DIDEROT_ROOT@/bin
29    
30    #
31    # configuration support
32    #
33    CONFIGDIR =     @DIDEROT_ROOT@/config
34    
35  INSTALL =       @INSTALL@  INSTALL =       @INSTALL@
36  SHELL =         @SHELL@  SHELL =         @SHELL@
37  @SET_MAKE@  @SET_MAKE@
# Line 38  Line 43 
43  PROGRAM =               diderotc  PROGRAM =               diderotc
44  ROOT_MLB =              driver/sources.mlb  ROOT_MLB =              driver/sources.mlb
45    
46    #
47    # generated parser files
48    #
49    PARSER_FILES =          parser/diderot.grm parser/diderot.lex
50    #
51    # preprocess files that contain UTF-8 multibyte sequences
52    #
53    UTF8_FILES =    parse-tree/operators.sml
54    EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))
55    
56  CODE_FRAG_FILES =  CODE_FRAG_FILES =
57    
58  .PHONY:         local-install  .PHONY:         local-install
# Line 51  Line 66 
66  .PHONY:         build  .PHONY:         build
67  build:          $(PROGRAM)  build:          $(PROGRAM)
68    
69  $(PROGRAM): $(ROOT_MLB) $(CODE_FRAG_FILES) parser/diderot.grm parser/diderot.lex  $(PROGRAM): $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)
70          $(MLTON) -output $(PROGRAM) $(ROOT_MLB)          $(MLTON) -output $(PROGRAM) $(ROOT_MLB)
71    
72  .PHONY:         typecheck  .PHONY:         typecheck
73  typecheck:  typecheck:      $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)
74          $(MLTON) -stop tc $(ROOT_MLB)          $(MLTON) -stop tc $(ROOT_MLB)
75    
76    #
77    # Generate the scanner and parser from specs
78    #
79  parser/diderot.grm.sml: parser/diderot.grm  parser/diderot.grm.sml: parser/diderot.grm
80          cd parser; ml-antlr diderot.grm          cd parser; ml-antlr diderot.grm
81    
82  parser/diderot.lex.sml: parser/diderot.lex  parser/diderot.lex.sml: parser/diderot.lex
83          cd parser; ml-ulex --strict-sml diderot.lex          cd parser; ml-ulex --strict-sml diderot.lex
84    
85    #
86    # preprocess files that contain UTF-8 multibyte sequences
87    #
88    UTF8_FILES =    parse-tree/operators.sml
89    EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))
90    
91    $(EXPANDED_FILES): %_mlton.sml: %.sml expand-utf8
92            expand-utf8 < $< > $@
93    
94    .phony:         UTF8
95    UTF8:
96    expand-utf8:    $(CONFIGDIR)/expand-utf8.c
97            $(CC) -o expand-utf8 $(CONFIGDIR)/expand-utf8.c
98    
99  #################### Cleanup ####################  #################### Cleanup ####################
100    
101  CLEAN_SUBDIRS =  CLEAN_SUBDIRS =
# Line 71  Line 103 
103  CLEAN_FILES +=          $(PROGRAM) \  CLEAN_FILES +=          $(PROGRAM) \
104                          */*.grm.sml \                          */*.grm.sml \
105                          */*.lex.sml \                          */*.lex.sml \
106                          $(CODE_FRAG_FILES)                          $(CODE_FRAG_FILES) \
107                            expand-utf8
108    
109  DISTCLEAN_FILES +=      Makefile \  DISTCLEAN_FILES +=      Makefile \
110                          common/paths.sml \                          common/paths.sml \

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

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