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/lexgen/src/Makefile
ViewVC logotype

Annotation of /sml/trunk/src/lexgen/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1902 - (view) (download)

1 : mblume 1902 #
2 :     # COPYRIGHT (c) 2005
3 :     # John Reppy (http://www.cs.uchicago.edu/~jhr)
4 :     # Aaron Turon (adrassi@gmail.com)
5 :     # All rights reserved.
6 :     #
7 :    
8 :     OS = $(shell uname -s)
9 :    
10 :     ifeq ($(shell uname -s),Darwin)
11 :     HEAP_SUFFIX = ppc-darwin
12 :     else
13 :     HEAP_SUFFIX = x86-unix
14 :     endif
15 :    
16 :     SHELL = /bin/sh
17 :     SML = sml
18 :     ML_BUILD = ml-build
19 :     ML_MAKEDEPEND = ml-makedepend
20 :    
21 :     PROGRAM = lexgen
22 :     HEAP_IMAGE = $(PROGRAM).$(HEAP_SUFFIX)
23 :    
24 :     FE = FrontEnds
25 :     BE = BackEnds
26 :    
27 :     ML_LEX = $(FE)/ml-lex
28 :     ML_LEX_SRC = $(wildcard $(ML_LEX)/*.sml) $(ML_LEX)/ml-lex.lex $(ML_LEX)/ml-lex.yacc
29 :    
30 :     DUMP_SRC = $(wildcard $(BE)/Dump/*.sml)
31 :     DOT_SRC = $(wildcard $(BE)/Dot/*.sml)
32 :     SML_SRC = $(wildcard $(BE)/SML/*.sml)
33 :     MATCH_SRC = $(wildcard $(BE)/Match/*.sml)
34 :    
35 :     FE_SRC = $(wildcard $(FE)/*.sml) $(ML_LEX_SRC)
36 :     BE_SRC = $(wildcard $(BE)/*.sml) $(DOT_SRC) $(SML_SRC) $(MATCH_SRC)
37 :    
38 :     CORE_SRC = $(wildcard *.sml)
39 :    
40 :     SOURCES = $(CORE_SRC) $(FE_SRC) $(BE_SRC) sources.cm
41 :    
42 :     build: $(HEAP_IMAGE)
43 :    
44 :     $(HEAP_IMAGE): $(SOURCES)
45 :     $(ML_BUILD) sources.cm Main.main $(PROGRAM)
46 :    
47 :     .depend: $(CM_FILES)
48 :     touch .depend
49 :     $(ML_MAKEDEPEND) -n -f .depend sources.cm $(HEAP_IMAGE)
50 :    
51 :     sinclude .depend
52 :    
53 :     #NOTE: do NOT clean out ml-lex.lex.sml, it is not autogenerated!
54 :     clean:
55 :     rm -rf .depend .cm FrontEnds/ml-lex/ml-lex.yacc.sml $(HEAP_IMAGE)

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