comparison Makefile.in @ 853:19fdeef40ada

Factor out common request functionality, in preparation for supporting different protocols
author Adam Chlipala <adamc@hcoop.net>
date Tue, 23 Jun 2009 14:05:12 -0400
parents 5368deb3764b
children 28e42b22424d
comparison
equal deleted inserted replaced
852:4d4c62d95b9c 853:19fdeef40ada
11 11
12 .PHONY: all smlnj mlton c clean install package 12 .PHONY: all smlnj mlton c clean install package
13 13
14 smlnj: src/urweb.cm 14 smlnj: src/urweb.cm
15 mlton: bin/urweb 15 mlton: bin/urweb
16 c: lib/c/urweb.o lib/c/driver.o 16 c: lib/c/urweb.o lib/c/request.o lib/c/driver.o
17 17
18 clean: 18 clean:
19 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ 19 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \
20 src/urweb.cm src/urweb.mlb \ 20 src/urweb.cm src/urweb.mlb \
21 lib/c/*.o 21 lib/c/*.o
22 rm -rf .cm src/.cm 22 rm -rf .cm src/.cm
23 23
24 lib/c/urweb.o: src/c/urweb.c include/*.h 24 lib/c/%.o: src/c/%.c include/*.h
25 gcc -O3 -I include -c src/c/urweb.c -o lib/c/urweb.o $(CFLAGS) 25 gcc -O3 -I include -c $< -o $@ $(CFLAGS)
26
27 lib/c/driver.o: src/c/driver.c include/*.h
28 gcc -O3 -I include -c src/c/driver.c -o lib/c/driver.o $(CFLAGS)
29 26
30 src/urweb.cm: src/prefix.cm src/sources 27 src/urweb.cm: src/prefix.cm src/sources
31 cat src/prefix.cm src/sources \ 28 cat src/prefix.cm src/sources \
32 >src/urweb.cm 29 >src/urweb.cm
33 30