Mercurial > projects > ldc
annotate tango/lib/llvmdc-posix.mak @ 203:e881c9b1c738 trunk
[svn r219] Fixed: the tango/lib/gc/basic garbage collector now compiles and links into an executable (change in tango/lib/llvmdc-posix.mak), closes #5 .
Changed: removed the crappy realloc based dynamic memory runtime and started moving over to DMD style runtime support, part of moving to real GC.
Fixed: dynamic arrays now use GC runtime for allocating memory.
Fixed: new expression now use GC for allocating memory.
Changed: revamped the dynamic array support routines related to dynamic memory.
Fixed: assertions no longer create exsessive allocas.
Changed: misc. minor cleanups.
author | lindquist |
---|---|
date | Tue, 13 May 2008 14:42:09 +0200 |
parents | aca17e55b7a5 |
children | 4c2689d57ba4 |
rev | line source |
---|---|
132 | 1 # Makefile to build the composite D runtime 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 runtime library | |
8 # make doc | |
9 # Generate documentation | |
10 # make clean | |
11 # Delete unneeded files created by build process | |
12 | |
13 LIB_TARGET=libtango-base-llvmdc.a | |
14 LIB_MASK=libtango-base-llvmdc*.a | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
15 LIB_TARGET_C=libtango-base-c-llvmdc.a |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
16 LIB_MASK_C=libtango-base-c-llvmdc*.a |
132 | 17 |
18 DIR_CC=./common/tango | |
19 DIR_RT=./compiler/llvmdc | |
203
e881c9b1c738
[svn r219] Fixed: the tango/lib/gc/basic garbage collector now compiles and links into an executable (change in tango/lib/llvmdc-posix.mak), closes #5 .
lindquist
parents:
193
diff
changeset
|
20 #DIR_GC=./gc/basic |
132 | 21 DIR_GC=./gc/stub |
22 | |
23 CP=cp -f | |
24 RM=rm -f | |
25 MD=mkdir -p | |
26 | |
27 CC=gcc | |
28 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
|
29 CLC=ar rsv |
132 | 30 DC=llvmdc |
31 | |
32 ADD_CFLAGS= | |
33 ADD_DFLAGS= | |
34 | |
193
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
133
diff
changeset
|
35 targets : lib doc |
aca17e55b7a5
[svn r209] Fixed: exotic array to pointer casts were broken.
lindquist
parents:
133
diff
changeset
|
36 all : lib doc |
132 | 37 |
38 ###################################################### | |
39 | |
40 ALL_OBJS= | |
41 | |
42 ###################################################### | |
43 | |
44 ALL_DOCS= | |
45 | |
46 ###################################################### | |
47 | |
48 lib : $(ALL_OBJS) | |
49 make -C $(DIR_CC) -fllvmdc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
50 make -C $(DIR_RT) -fllvmdc.mak lib | |
51 make -C $(DIR_GC) -fllvmdc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
52 find . -name $(LIB_MASK) | xargs $(RM) | |
53 $(LC) $(LIB_TARGET) `find $(DIR_CC) -name "*.bc" | xargs echo` | |
54 $(LC) $(LIB_TARGET) `find $(DIR_RT) -name "*.bc" | xargs echo` | |
55 $(LC) $(LIB_TARGET) `find $(DIR_GC) -name "*.bc" | xargs echo` | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
56 $(CLC) $(LIB_TARGET_C) `find $(DIR_CC) -name "*.o" | xargs echo` |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
57 $(CLC) $(LIB_TARGET_C) `find $(DIR_RT) -name "*.o" | xargs echo` |
132 | 58 |
59 doc : $(ALL_DOCS) | |
60 make -C $(DIR_CC) -fllvmdc.mak doc | |
61 make -C $(DIR_RT) -fllvmdc.mak doc | |
62 make -C $(DIR_GC) -fllvmdc.mak doc | |
63 | |
64 ###################################################### | |
65 | |
66 clean : | |
67 find . -name "*.di" | xargs $(RM) | |
68 $(RM) $(ALL_OBJS) | |
69 $(RM) $(ALL_DOCS) | |
70 make -C $(DIR_CC) -fllvmdc.mak clean | |
71 make -C $(DIR_RT) -fllvmdc.mak clean | |
72 make -C $(DIR_GC) -fllvmdc.mak clean | |
73 $(RM) $(LIB_MASK) | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
74 $(RM) $(LIB_MASK_C) |
132 | 75 |
76 install : | |
77 make -C $(DIR_CC) -fllvmdc.mak install | |
78 make -C $(DIR_RT) -fllvmdc.mak install | |
79 make -C $(DIR_GC) -fllvmdc.mak install | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
80 $(CP) $(LIB_MASK) $(LIB_DEST)/. |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
81 $(CP) $(LIB_MASK_C) $(LIB_DEST)/. |