comparison Makefile.in @ 602:1d34d916c206

Combine lib* directories
author Adam Chlipala <adamc@hcoop.net>
date Tue, 13 Jan 2009 15:23:48 -0500
parents 162d5308e34f
children 5368deb3764b
comparison
equal deleted inserted replaced
601:7c3c21eb5b4c 602:1d34d916c206
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: clib/urweb.o clib/driver.o 16 c: lib/c/urweb.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 clib/*.o 21 lib/c/*.o
22 rm -rf .cm src/.cm 22 rm -rf .cm src/.cm
23 23
24 clib/urweb.o: src/c/urweb.c include/*.h 24 lib/c/urweb.o: src/c/urweb.c include/*.h
25 gcc -O3 -I include -c src/c/urweb.c -o clib/urweb.o $(CFLAGS) 25 gcc -O3 -I include -c src/c/urweb.c -o lib/c/urweb.o $(CFLAGS)
26 26
27 clib/driver.o: src/c/driver.c include/*.h 27 lib/c/driver.o: src/c/driver.c include/*.h
28 gcc -O3 -I include -c src/c/driver.c -o clib/driver.o $(CFLAGS) 28 gcc -O3 -I include -c src/c/driver.c -o lib/c/driver.o $(CFLAGS)
29 29
30 src/urweb.cm: src/prefix.cm src/sources 30 src/urweb.cm: src/prefix.cm src/sources
31 cat src/prefix.cm src/sources \ 31 cat src/prefix.cm src/sources \
32 >src/urweb.cm 32 >src/urweb.cm
33 33
65 65
66 install: 66 install:
67 mkdir -p $(BIN) 67 mkdir -p $(BIN)
68 cp bin/urweb $(BIN)/ 68 cp bin/urweb $(BIN)/
69 mkdir -p $(LIB_UR) 69 mkdir -p $(LIB_UR)
70 cp lib/*.urs $(LIB_UR)/ 70 cp lib/ur/*.urs $(LIB_UR)/
71 cp lib/*.ur $(LIB_UR)/ 71 cp lib/ur/*.ur $(LIB_UR)/
72 mkdir -p $(LIB_C) 72 mkdir -p $(LIB_C)
73 cp clib/*.o $(LIB_C)/ 73 cp lib/c/*.o $(LIB_C)/
74 mkdir -p $(LIB_JS) 74 mkdir -p $(LIB_JS)
75 cp jslib/*.js $(LIB_JS)/ 75 cp lib/js/*.js $(LIB_JS)/
76 mkdir -p $(INCLUDE) 76 mkdir -p $(INCLUDE)
77 cp include/*.h $(INCLUDE)/ 77 cp include/*.h $(INCLUDE)/
78 mkdir -p $(SITELISP) 78 mkdir -p $(SITELISP)
79 cp src/elisp/*.el $(SITELISP)/ 79 cp src/elisp/*.el $(SITELISP)/
80 80