comparison Makefile.in @ 1104:72670131dace

Basis.serialize; separate file for mhash; run transactional finishers in reverse order; set needs_sig properly
author Adam Chlipala <adamc@hcoop.net>
date Thu, 31 Dec 2009 11:41:57 -0500
parents bed675db3aff
children c9137606733a
comparison
equal deleted inserted replaced
1103:2f42c61b8d0a 1104:72670131dace
15 .PHONY: all smlnj mlton c clean install package 15 .PHONY: all smlnj mlton c clean install package
16 16
17 smlnj: src/urweb.cm 17 smlnj: src/urweb.cm
18 mlton: bin/urweb 18 mlton: bin/urweb
19 19
20 OBJS := memmem urweb request queue http cgi fastcgi 20 OBJS := memmem mhash urweb request queue http cgi fastcgi
21 SOS := urweb urweb_http urweb_cgi urweb_fastcgi 21 SOS := urweb urweb_http urweb_cgi urweb_fastcgi
22 c: $(OBJS:%=lib/c/%.o) $(SOS:%=lib/c/lib%.so.$(LD_MAJOR).$(LD_MINOR)) 22 c: $(OBJS:%=lib/c/%.o) $(SOS:%=lib/c/lib%.so.$(LD_MAJOR).$(LD_MINOR))
23 23
24 clean: 24 clean:
25 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ 25 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \
31 gcc -fPIC -Wimplicit -O3 -I include -c $< -o $@ $(CFLAGS) 31 gcc -fPIC -Wimplicit -O3 -I include -c $< -o $@ $(CFLAGS)
32 32
33 lib/c/%.o: src/c/%.c include/*.h 33 lib/c/%.o: src/c/%.c include/*.h
34 gcc -Wimplicit -O3 -I include -c $< -o $@ $(CFLAGS) 34 gcc -Wimplicit -O3 -I include -c $< -o $@ $(CFLAGS)
35 35
36 URWEB_OS := memmem urweb queue request 36 URWEB_OS := memmem urweb queue request mhash
37 lib/c/liburweb.so.$(LD_MAJOR).$(LD_MINOR): $(URWEB_OS:%=lib/c/%.do) 37 lib/c/liburweb.so.$(LD_MAJOR).$(LD_MINOR): $(URWEB_OS:%=lib/c/%.do)
38 gcc -shared -Wl,-soname,liburweb.so.$(LD_MAJOR) -o $@ $^ 38 gcc -shared -Wl,-soname,liburweb.so.$(LD_MAJOR) -o $@ $^
39 39
40 lib/c/liburweb_%.so.$(LD_MAJOR).$(LD_MINOR): lib/c/%.do 40 lib/c/liburweb_%.so.$(LD_MAJOR).$(LD_MINOR): lib/c/%.do
41 gcc -shared -Wl,-soname,liburweb_$*.so.$(LD_MAJOR) -o $@ $^ 41 gcc -shared -Wl,-soname,liburweb_$*.so.$(LD_MAJOR) -o $@ $^