Mercurial > projects > ldc
comparison runtime/lib/ldc-posix.mak @ 665:d8a1481eaa0c
Renames.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 06 Oct 2008 22:56:54 +0200 |
parents | runtime/lib/llvmdc-posix.mak@6aaa3d3c1183 |
children | 9d6d32b969d7 |
comparison
equal
deleted
inserted
replaced
664:eef8ac26c66c | 665:d8a1481eaa0c |
---|---|
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-ldc.a | |
14 LIB_MASK=libtango-base-ldc*.a | |
15 LIB_TARGET_C=libtango-base-c-ldc.a | |
16 LIB_MASK_C=libtango-base-c-ldc*.a | |
17 LIB_NAME_NATIVE=libtango-base-ldc-native | |
18 LIB_TARGET_NATIVE=$(LIB_NAME_NATIVE).a | |
19 | |
20 DIR_CC=./common/tango | |
21 DIR_RT=../../runtime/internal | |
22 DIR_GC=./gc/basic | |
23 #DIR_GC=./gc/stub | |
24 | |
25 CP=cp -f | |
26 RM=rm -f | |
27 MD=mkdir -p | |
28 | |
29 CC=gcc | |
30 LC=llvm-ar rsv | |
31 CLC=ar rsv | |
32 DC=ldc | |
33 LLVMLINK=llvm-link | |
34 LLC=llc | |
35 | |
36 ADD_CFLAGS= | |
37 #ADD_DFLAGS= | |
38 ADD_DFLAGS=-I`pwd`/common/ | |
39 | |
40 targets : lib sharedlib doc | |
41 all : lib sharedlib doc | |
42 | |
43 ###################################################### | |
44 | |
45 ALL_OBJS= | |
46 | |
47 ###################################################### | |
48 | |
49 ALL_DOCS= | |
50 | |
51 ###################################################### | |
52 | |
53 lib : $(ALL_OBJS) | |
54 make -C $(DIR_CC) -fldc.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
55 make -C $(DIR_RT) -fldc.mak lib | |
56 make -C $(DIR_GC) -fldc.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) -fldc.mak sharedlib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
61 make -C $(DIR_RT) -fldc.mak sharedlib | |
62 make -C $(DIR_GC) -fldc.mak sharedlib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" | |
63 # could link the three parts into one here, but why should we | |
64 | |
65 doc : $(ALL_DOCS) | |
66 make -C $(DIR_CC) -fldc.mak doc | |
67 make -C $(DIR_RT) -fldc.mak doc | |
68 make -C $(DIR_GC) -fldc.mak doc | |
69 | |
70 ###################################################### | |
71 | |
72 clean : | |
73 find . -name "*.di" | xargs $(RM) | |
74 $(RM) $(ALL_OBJS) | |
75 $(RM) $(ALL_DOCS) | |
76 make -C $(DIR_CC) -fldc.mak clean | |
77 make -C $(DIR_RT) -fldc.mak clean | |
78 make -C $(DIR_GC) -fldc.mak clean | |
79 $(RM) $(LIB_MASK) | |
80 $(RM) $(LIB_MASK_C) | |
81 $(RM) $(LIB_NAME_NATIVE)* | |
82 | |
83 install : | |
84 make -C $(DIR_CC) -fldc.mak install | |
85 make -C $(DIR_RT) -fldc.mak install | |
86 make -C $(DIR_GC) -fldc.mak install | |
87 $(CP) $(LIB_MASK) $(LIB_DEST)/. | |
88 $(CP) $(LIB_MASK_C) $(LIB_DEST)/. |