Mercurial > projects > ldc
comparison tango/lib/common/tango/llvmdc.mak @ 133:44a95ac7368a trunk
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
In particular, assertions has been fixed to include file/line info, and much more!
author | lindquist |
---|---|
date | Mon, 14 Jan 2008 05:11:54 +0100 |
parents | 1700239cab2e |
children | 0ab29b838084 |
comparison
equal
deleted
inserted
replaced
132:1700239cab2e | 133:44a95ac7368a |
---|---|
10 # make clean | 10 # make clean |
11 # Delete unneeded files created by build process | 11 # Delete unneeded files created by build process |
12 | 12 |
13 LIB_TARGET=libtango-cc-tango.a | 13 LIB_TARGET=libtango-cc-tango.a |
14 LIB_MASK=libtango-cc-tango*.a | 14 LIB_MASK=libtango-cc-tango*.a |
15 LIB_TARGET_C=libtango-cc-c-tango.a | |
16 LIB_MASK_C=libtango-cc-c-tango*.a | |
15 | 17 |
16 CP=cp -f | 18 CP=cp -f |
17 RM=rm -f | 19 RM=rm -f |
18 MD=mkdir -p | 20 MD=mkdir -p |
19 | 21 |
31 | 33 |
32 DOCFLAGS=-version=DDoc | 34 DOCFLAGS=-version=DDoc |
33 | 35 |
34 CC=gcc | 36 CC=gcc |
35 LC=llvm-ar rsv | 37 LC=llvm-ar rsv |
38 CLC=ar rsv | |
36 DC=llvmdc | 39 DC=llvmdc |
37 LLC=llvm-as | 40 LLC=llvm-as |
38 | 41 |
39 INC_DEST=../../../tango | 42 INC_DEST=../../../tango |
40 LIB_DEST=.. | 43 LIB_DEST=.. |
66 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html tango.ddoc $< | 69 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html tango.ddoc $< |
67 | 70 |
68 targets : lib doc | 71 targets : lib doc |
69 all : lib doc | 72 all : lib doc |
70 tango : lib | 73 tango : lib |
71 lib : tango.lib | 74 lib : tango.lib tango.clib |
72 doc : tango.doc | 75 doc : tango.doc |
73 | 76 |
74 ###################################################### | 77 ###################################################### |
75 | 78 |
76 OBJ_CORE= \ | 79 OBJ_CORE= \ |
80 core/Runtime.bc \ | 83 core/Runtime.bc \ |
81 core/Thread.bc | 84 core/Thread.bc |
82 # core/ThreadASM.o | 85 # core/ThreadASM.o |
83 | 86 |
84 OBJ_STDC= \ | 87 OBJ_STDC= \ |
85 stdc/wrap.bc | 88 stdc/wrap.o |
89 # stdc/wrap.bc | |
86 | 90 |
87 OBJ_STDC_POSIX= \ | 91 OBJ_STDC_POSIX= \ |
88 stdc/posix/pthread_darwin.o | 92 stdc/posix/pthread_darwin.o |
89 | 93 |
90 ALL_OBJS= \ | 94 ALL_OBJS= \ |
91 $(OBJ_CORE) \ | 95 $(OBJ_CORE) |
92 $(OBJ_STDC) | 96 # $(OBJ_STDC) |
93 # $(OBJ_STDC_POSIX) | 97 # $(OBJ_STDC_POSIX) |
94 | 98 |
95 ###################################################### | 99 ###################################################### |
96 | 100 |
97 DOC_CORE= \ | 101 DOC_CORE= \ |
110 | 114 |
111 $(LIB_TARGET) : $(ALL_OBJS) | 115 $(LIB_TARGET) : $(ALL_OBJS) |
112 $(RM) $@ | 116 $(RM) $@ |
113 $(LC) $@ $(ALL_OBJS) | 117 $(LC) $@ $(ALL_OBJS) |
114 | 118 |
119 | |
120 tango.clib : $(LIB_TARGET_C) | |
121 | |
122 $(LIB_TARGET_C) : $(OBJ_STDC) | |
123 $(RM) $@ | |
124 $(CLC) $@ $(OBJ_STDC) | |
125 | |
126 | |
115 tango.doc : $(ALL_DOCS) | 127 tango.doc : $(ALL_DOCS) |
116 echo Documentation generated. | 128 echo Documentation generated. |
117 | 129 |
118 ###################################################### | 130 ###################################################### |
119 | 131 |
125 ###################################################### | 137 ###################################################### |
126 | 138 |
127 clean : | 139 clean : |
128 find . -name "*.di" | xargs $(RM) | 140 find . -name "*.di" | xargs $(RM) |
129 $(RM) $(ALL_OBJS) | 141 $(RM) $(ALL_OBJS) |
142 $(RM) $(OBJ_STDC) | |
130 $(RM) $(ALL_DOCS) | 143 $(RM) $(ALL_DOCS) |
131 find . -name "$(LIB_MASK)" | xargs $(RM) | 144 find . -name "$(LIB_MASK)" | xargs $(RM) |
145 find . -name "$(LIB_MASK_C)" | xargs $(RM) | |
132 | 146 |
133 install : | 147 install : |
134 $(MD) $(INC_DEST) | 148 $(MD) $(INC_DEST) |
135 find . -name "*.di" -exec cp -f {} $(INC_DEST)/{} \; | 149 find . -name "*.di" -exec cp -f {} $(INC_DEST)/{} \; |
136 $(MD) $(DOC_DEST) | 150 $(MD) $(DOC_DEST) |
137 find . -name "*.html" -exec cp -f {} $(DOC_DEST)/{} \; | 151 find . -name "*.html" -exec cp -f {} $(DOC_DEST)/{} \; |
138 $(MD) $(LIB_DEST) | 152 $(MD) $(LIB_DEST) |
139 find . -name "$(LIB_MASK)" -exec cp -f {} $(LIB_DEST)/{} \; | 153 find . -name "$(LIB_MASK)" -exec cp -f {} $(LIB_DEST)/{} \; |
154 find . -name "$(LIB_MASK_C)" -exec cp -f {} $(LIB_DEST)/{} \; |