comparison Makefile @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents 94856a3b4752
children 168667cdaa95
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 all: smlnj mlton c 1 all: smlnj mlton c
2 2
3 .PHONY: all smlnj mlton c clean 3 .PHONY: all smlnj mlton c clean
4 4
5 smlnj: src/lacweb.cm 5 smlnj: src/urweb.cm
6 mlton: bin/lacweb 6 mlton: bin/urweb
7 c: clib/lacweb.o clib/driver.o 7 c: clib/urweb.o clib/driver.o
8 8
9 clean: 9 clean:
10 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ 10 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \
11 src/lacweb.cm src/lacweb.mlb \ 11 src/urweb.cm src/urweb.mlb \
12 clib/*.o 12 clib/*.o
13 rm -rf .cm src/.cm 13 rm -rf .cm src/.cm
14 14
15 clib/lacweb.o: src/c/lacweb.c 15 clib/urweb.o: src/c/urweb.c
16 gcc -O3 -I include -c src/c/lacweb.c -o clib/lacweb.o 16 gcc -O3 -I include -c src/c/urweb.c -o clib/urweb.o
17 17
18 clib/driver.o: src/c/driver.c 18 clib/driver.o: src/c/driver.c
19 gcc -O3 -I include -c src/c/driver.c -o clib/driver.o 19 gcc -O3 -I include -c src/c/driver.c -o clib/driver.o
20 20
21 src/lacweb.cm: src/prefix.cm src/sources 21 src/urweb.cm: src/prefix.cm src/sources
22 cat src/prefix.cm src/sources \ 22 cat src/prefix.cm src/sources \
23 >src/lacweb.cm 23 >src/urweb.cm
24 24
25 src/lacweb.mlb: src/prefix.mlb src/sources src/suffix.mlb 25 src/urweb.mlb: src/prefix.mlb src/sources src/suffix.mlb
26 cat src/prefix.mlb src/sources src/suffix.mlb \ 26 cat src/prefix.mlb src/sources src/suffix.mlb \
27 | sed 's/^\(.*\).grm$$/\1.mlton.grm.sig\n\1.mlton.grm.sml/' \ 27 | sed 's/^\(.*\).grm$$/\1.mlton.grm.sig\n\1.mlton.grm.sml/' \
28 | sed 's/^\(.*\).lex$$/\1.mlton.lex.sml/' \ 28 | sed 's/^\(.*\).lex$$/\1.mlton.lex.sml/' \
29 >src/lacweb.mlb 29 >src/urweb.mlb
30 30
31 %.mlton.lex: %.lex 31 %.mlton.lex: %.lex
32 cp $< $@ 32 cp $< $@
33 %.mlton.grm: %.grm 33 %.mlton.grm: %.grm
34 cp $< $@ 34 cp $< $@
43 43
44 ifdef DEBUG 44 ifdef DEBUG
45 MLTON += -const 'Exn.keepHistory true' 45 MLTON += -const 'Exn.keepHistory true'
46 endif 46 endif
47 47
48 bin/lacweb: src/lacweb.mlb src/*.sig src/*.sml \ 48 bin/urweb: src/urweb.mlb src/*.sig src/*.sml \
49 src/lacweb.mlton.lex.sml \ 49 src/urweb.mlton.lex.sml \
50 src/lacweb.mlton.grm.sig src/lacweb.mlton.grm.sml 50 src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml
51 $(MLTON) -output $@ src/lacweb.mlb 51 $(MLTON) -output $@ src/urweb.mlb