Mercurial > projects > ldc
annotate tango/lib/compiler/llvmdc/llvmdc.mak @ 339:385a18242485 trunk
[svn r360] Another mostly rewrite of DtoArrayInit. Should be much more robust now, and probably faster code generated for the most common cases too!
Fixed issues with slice initialization (!!!) of multidimensional static arrays.
Attempt to fix issue with referencing nested 'this' pointers introduced in DMD 1.033 merge.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 01:29:49 +0200 |
parents | 0d52412d5b1a |
children |
rev | line source |
---|---|
132 | 1 # Makefile to build the LLVMDC compiler runtime D library for Linux |
2 # Designed to work with GNU make | |
3 # Targets: | |
4 # make | |
5 # Same as make all | |
6 # make lib | |
7 # Build the compiler runtime library | |
8 # make doc | |
9 # Generate documentation | |
10 # make clean | |
11 # Delete unneeded files created by build process | |
12 | |
212
4c2689d57ba4
[svn r228] Fixed: when new'ing basic types, the storage was not default initialized.
lindquist
parents:
203
diff
changeset
|
13 LIB_TARGET=libtango-base-llvmdc.a |
4c2689d57ba4
[svn r228] Fixed: when new'ing basic types, the storage was not default initialized.
lindquist
parents:
203
diff
changeset
|
14 LIB_MASK=libtango-base-llvmdc*.a |
132 | 15 |
212
4c2689d57ba4
[svn r228] Fixed: when new'ing basic types, the storage was not default initialized.
lindquist
parents:
203
diff
changeset
|
16 LIB_TARGET_C=libtango-base-c-llvmdc.a |
4c2689d57ba4
[svn r228] Fixed: when new'ing basic types, the storage was not default initialized.
lindquist
parents:
203
diff
changeset
|
17 LIB_MASK_C=libtango-base-c-llvmdc*.a |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
18 |
132 | 19 CP=cp -f |
20 RM=rm -f | |
21 MD=mkdir -p | |
22 | |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
133
diff
changeset
|
23 #CFLAGS=-O3 $(ADD_CFLAGS) |
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
133
diff
changeset
|
24 CFLAGS=-g $(ADD_CFLAGS) |
132 | 25 |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
133
diff
changeset
|
26 #DFLAGS=-release -O3 -inline -w $(ADD_DFLAGS) |
305
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
237
diff
changeset
|
27 DFLAGS=-g -w $(ADD_DFLAGS) |
132 | 28 |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
133
diff
changeset
|
29 #TFLAGS=-O3 -inline -w $(ADD_DFLAGS) |
305
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
237
diff
changeset
|
30 TFLAGS=-g -w $(ADD_DFLAGS) |
132 | 31 |
32 DOCFLAGS=-version=DDoc | |
33 | |
34 CC=gcc | |
35 LC=llvm-ar rsv | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
36 CLC=ar rsv |
132 | 37 DC=llvmdc |
38 LLC=llvm-as | |
39 | |
40 LIB_DEST=.. | |
41 | |
42 .SUFFIXES: .s .S .c .cpp .d .ll .html .o .bc | |
43 | |
44 .s.o: | |
45 $(CC) -c $(CFLAGS) $< -o$@ | |
46 | |
47 .S.o: | |
48 $(CC) -c $(CFLAGS) $< -o$@ | |
49 | |
50 .c.o: | |
51 $(CC) -c $(CFLAGS) $< -o$@ | |
52 | |
53 .cpp.o: | |
54 g++ -c $(CFLAGS) $< -o$@ | |
55 | |
56 .d.bc: | |
57 $(DC) -c $(DFLAGS) $< -of$@ | |
58 | |
59 .d.html: | |
60 $(DC) -c -o- $(DOCFLAGS) -Df$*.html llvmdc.ddoc $< | |
61 | |
62 targets : lib doc | |
63 all : lib doc | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
64 lib : llvmdc.lib llvmdc.clib |
132 | 65 doc : llvmdc.doc |
66 | |
67 ###################################################### | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
68 OBJ_C= \ |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
69 monitor.o \ |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
70 critical.o |
132 | 71 |
72 OBJ_BASE= \ | |
73 aaA.bc \ | |
74 aApply.bc \ | |
75 aApplyR.bc \ | |
76 adi.bc \ | |
77 arrays.bc \ | |
78 cast.bc \ | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
79 dmain2.bc \ |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
80 eh.bc \ |
132 | 81 genobj.bc \ |
82 lifetime.bc \ | |
83 memory.bc \ | |
84 qsort2.bc \ | |
85 switch.bc \ | |
86 | |
87 OBJ_UTIL= \ | |
88 util/console.bc \ | |
89 util/ctype.bc \ | |
90 util/string.bc \ | |
91 util/utf.bc | |
92 | |
93 OBJ_TI= \ | |
94 typeinfo/ti_AC.bc \ | |
95 typeinfo/ti_Acdouble.bc \ | |
96 typeinfo/ti_Acfloat.bc \ | |
97 typeinfo/ti_Acreal.bc \ | |
98 typeinfo/ti_Adouble.bc \ | |
99 typeinfo/ti_Afloat.bc \ | |
100 typeinfo/ti_Ag.bc \ | |
101 typeinfo/ti_Aint.bc \ | |
102 typeinfo/ti_Along.bc \ | |
103 typeinfo/ti_Areal.bc \ | |
104 typeinfo/ti_Ashort.bc \ | |
105 typeinfo/ti_byte.bc \ | |
106 typeinfo/ti_C.bc \ | |
107 typeinfo/ti_cdouble.bc \ | |
108 typeinfo/ti_cfloat.bc \ | |
109 typeinfo/ti_char.bc \ | |
110 typeinfo/ti_creal.bc \ | |
111 typeinfo/ti_dchar.bc \ | |
112 typeinfo/ti_delegate.bc \ | |
113 typeinfo/ti_double.bc \ | |
114 typeinfo/ti_float.bc \ | |
115 typeinfo/ti_idouble.bc \ | |
116 typeinfo/ti_ifloat.bc \ | |
117 typeinfo/ti_int.bc \ | |
118 typeinfo/ti_ireal.bc \ | |
119 typeinfo/ti_long.bc \ | |
120 typeinfo/ti_ptr.bc \ | |
121 typeinfo/ti_real.bc \ | |
122 typeinfo/ti_short.bc \ | |
123 typeinfo/ti_ubyte.bc \ | |
124 typeinfo/ti_uint.bc \ | |
125 typeinfo/ti_ulong.bc \ | |
126 typeinfo/ti_ushort.bc \ | |
127 typeinfo/ti_void.bc \ | |
128 typeinfo/ti_wchar.bc | |
129 | |
130 ALL_OBJS= \ | |
131 $(OBJ_BASE) \ | |
132 $(OBJ_UTIL) \ | |
323
0d52412d5b1a
[svn r344] Fixed some very minor issues with the usage listing when calling llvmdc with no arguments.
lindquist
parents:
305
diff
changeset
|
133 $(OBJ_TI) |
132 | 134 |
135 ###################################################### | |
136 | |
137 ALL_DOCS= | |
138 | |
139 ###################################################### | |
140 | |
141 llvmdc.lib : $(LIB_TARGET) | |
142 | |
143 $(LIB_TARGET) : $(ALL_OBJS) | |
144 $(RM) $@ | |
145 $(LC) $@ $(ALL_OBJS) | |
146 | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
147 llvmdc.clib : $(LIB_TARGET_C) |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
148 |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
149 $(LIB_TARGET_C) : $(OBJ_C) |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
150 $(RM) $@ |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
151 $(CLC) $@ $(OBJ_C) |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
152 |
132 | 153 llvmdc.doc : $(ALL_DOCS) |
154 echo No documentation available. | |
155 | |
156 ###################################################### | |
157 | |
158 clean : | |
159 find . -name "*.di" | xargs $(RM) | |
160 $(RM) $(ALL_OBJS) | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
161 $(RM) $(OBJ_C) |
132 | 162 $(RM) $(ALL_DOCS) |
163 $(RM) $(LIB_MASK) | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
164 $(RM) $(LIB_MASK_C) |
132 | 165 |
166 install : | |
167 $(MD) $(LIB_DEST) | |
168 $(CP) $(LIB_MASK) $(LIB_DEST)/. | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
169 $(CP) $(LIB_MASK_C) $(LIB_DEST)/. |