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 3726, Mon Apr 4 23:41:00 2016 UTC revision 3816, Wed May 4 16:34:21 2016 UTC
# Line 36  Line 36 
36  SHELL =         @SHELL@  SHELL =         @SHELL@
37  @SET_MAKE@  @SET_MAKE@
38    
39    #
40    # generator tools
41    #
42    MKMK =          $(SRCDIR)/compiler/gen/fragments/mkmk.sh
43    MKFRAGS =       $(SRCDIR)/compiler/gen/fragments/mkfrags.sh
44    
45    #
46    # MLton build tools
47    #
48  MLTON =         @MLTON@  MLTON =         @MLTON@
49  MLTON_FLAGS =   -const 'Exn.keepHistory true'  MLTON_FLAGS =   -const 'Exn.keepHistory true'
50    
# Line 47  Line 56 
56  #  #
57  # generated parser files  # generated parser files
58  #  #
59  PARSER_FILES =          parser/diderot.grm parser/diderot.lex  PARSER_FILES =          parser/diderot.grm.sml parser/diderot.lex.sml
60  #  #
61  # preprocess files that contain UTF-8 multibyte sequences  # preprocess files that contain UTF-8 multibyte sequences
62  #  #
# Line 57  Line 66 
66                  typechecker/check-expr.sml                  typechecker/check-expr.sml
67  EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))  EXPANDED_FILES = $(patsubst %.sml,%_mlton.sml,$(UTF8_FILES))
68    
69  CODE_FRAG_FILES =  SRC_FILES =             $(wildcard */sources.mlb) $(wildcard */*sml)
70    
71    CODE_FRAG_DIRS =        c-util
72    
73    CODE_FRAG_FILES =       $(patsubst %,%/fragments.sml,$(CODE_FRAG_DIRS))
74    CODE_FRAG_MKFILES =     $(patsubst %,%/fragments.gmk,$(CODE_FRAG_DIRS))
75    
76  .PHONY:         local-install  .PHONY:         local-install
77  local-install:  $(PROGRAM)  local-install:  $(PROGRAM)
# Line 70  Line 84 
84  .PHONY:         build  .PHONY:         build
85  build:          $(PROGRAM)  build:          $(PROGRAM)
86    
87  $(PROGRAM): $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)  $(PROGRAM): $(ROOT_MLB) $(SRC_FILES) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)
88          $(MLTON) $(MLTON_FLAGS) -output $(PROGRAM) $(ROOT_MLB)          $(MLTON) $(MLTON_FLAGS) -output $(PROGRAM) $(ROOT_MLB)
89    
90  .PHONY:         typecheck  .PHONY:         typecheck
91  typecheck:      $(ROOT_MLB) $(CODE_FRAG_FILES) $(PARSER_FILES) $(EXPANDED_FILES)  typecheck:
92          $(MLTON) -stop tc $(MLTON_FLAGS) $(ROOT_MLB)          $(MLTON) -stop tc $(MLTON_FLAGS) $(ROOT_MLB)
93    
94  #  #
# Line 97  Line 111 
111  UTF8:  UTF8:
112  expand-utf8:    $(CONFIGDIR)/expand-utf8.c  expand-utf8:    $(CONFIGDIR)/expand-utf8.c
113          $(CC) -o expand-utf8 $(CONFIGDIR)/expand-utf8.c          $(CC) -o expand-utf8 $(CONFIGDIR)/expand-utf8.c
114    #
115    # Rules for generating the fragment dependency and source files
116    #
117    
118    c-util/fragments.gmk: c-util/fragments/CATALOG $(wildcard c-util/fragments/*in)
119            $(MKMK) c-util
120    
121    c-util/fragments.sml:
122            $(MKFRAGS) c-util
123    
124    #
125    # Dependency file rules
126    #
127    
128    ifneq ($(MAKECMDGOALS),clean)
129    ifneq ($(MAKECMDGOALS),devclean)
130    ifneq ($(MAKECMDGOALS),distclean)
131    sinclude c-util/fragments.gmk
132    endif
133    endif
134    endif
135    
136  #################### Cleanup ####################  #################### Cleanup ####################
137    
138  CLEAN_SUBDIRS =  CLEAN_SUBDIRS =
139    
140  CLEAN_FILES +=          $(PROGRAM) \  CLEAN_FILES +=          $(PROGRAM) \
141                            $(CODE_FRAG_MKFILES) \
142                          $(CODE_FRAG_FILES) \                          $(CODE_FRAG_FILES) \
143                          $(PARSER_FILES) \                          $(PARSER_FILES) \
144                          $(EXPANDED_FILES) \                          $(EXPANDED_FILES) \
# Line 111  Line 147 
147  DISTCLEAN_FILES +=      Makefile \  DISTCLEAN_FILES +=      Makefile \
148                          common/paths.sml \                          common/paths.sml \
149                          common/size-of.sml \                          common/size-of.sml \
150                          nrrd/run-dnorm.sml                          c-util/fragments/config.in \
151                            nrrd/run-dnorm.sml \
152                            options/version.sml \
153                            $(MKMK) $(MKFRAGS)
154    
155  DEVCLEAN_FILES =  DEVCLEAN_FILES =
156    

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

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