Mercurial > projects > ldc
comparison runtime/lib/llvmdc-posix.mak @ 579:20c065c46b38
Basic support for runtime in shared library.
Needs to be built with runtime/build-sharedlibs.sh and activated manually by
providing -defaultlib=llvmdc-runtime-shared -defaultlib=tango-cc-tango-shared
-defaultlib=tango-gc-basic-shared on llvmdc call at the moment.
To support D shared libraries in non-D code, we need to remove the main() from
libllvmdc-runtime-shared.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 05 Sep 2008 23:02:18 +0200 |
parents | 926a03711ca8 |
children | 6aaa3d3c1183 |
comparison
equal
deleted
inserted
replaced
578:8caa9adce5ae | 579:20c065c46b38 |
---|---|
35 | 35 |
36 ADD_CFLAGS= | 36 ADD_CFLAGS= |
37 #ADD_DFLAGS= | 37 #ADD_DFLAGS= |
38 ADD_DFLAGS=-I`pwd`/common/ | 38 ADD_DFLAGS=-I`pwd`/common/ |
39 | 39 |
40 targets : lib doc | 40 targets : lib sharedlib doc |
41 all : lib doc | 41 all : lib sharedlib doc |
42 | 42 |
43 ###################################################### | 43 ###################################################### |
44 | 44 |
45 ALL_OBJS= | 45 ALL_OBJS= |
46 | 46 |
52 | 52 |
53 lib : $(ALL_OBJS) | 53 lib : $(ALL_OBJS) |
54 make -C $(DIR_CC) -fllvmdc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | 54 make -C $(DIR_CC) -fllvmdc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
55 make -C $(DIR_RT) -fllvmdc.mak lib | 55 make -C $(DIR_RT) -fllvmdc.mak lib |
56 make -C $(DIR_GC) -fllvmdc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | 56 make -C $(DIR_GC) -fllvmdc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" |
57 # could link the three parts into one here, but why should we | |
58 | |
59 sharedlib : $(ALL_OBJS) | |
60 make -C $(DIR_CC) -fllvmdc.mak sharedlib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
61 make -C $(DIR_RT) -fllvmdc.mak sharedlib | |
62 make -C $(DIR_GC) -fllvmdc.mak sharedlib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
57 # could link the three parts into one here, but why should we | 63 # could link the three parts into one here, but why should we |
58 | 64 |
59 doc : $(ALL_DOCS) | 65 doc : $(ALL_DOCS) |
60 make -C $(DIR_CC) -fllvmdc.mak doc | 66 make -C $(DIR_CC) -fllvmdc.mak doc |
61 make -C $(DIR_RT) -fllvmdc.mak doc | 67 make -C $(DIR_RT) -fllvmdc.mak doc |