comparison runtime/lib/gc/stub/ldc.mak @ 665:d8a1481eaa0c

Renames.
author Christian Kamm <kamm incasoftware de>
date Mon, 06 Oct 2008 22:56:54 +0200
parents runtime/lib/gc/stub/llvmdc.mak@6aaa3d3c1183
children
comparison
equal deleted inserted replaced
664:eef8ac26c66c 665:d8a1481eaa0c
1 # Makefile to build the garbage collector D library for Posix
2 # Designed to work with GNU make
3 # Targets:
4 # make
5 # Same as make all
6 # make lib
7 # Build the garbage collector library
8 # make doc
9 # Generate documentation
10 # make clean
11 # Delete unneeded files created by build process
12
13 LIB_TARGET=libtango-gc-stub.a
14 LIB_MASK=libtango-gc-stub*.a
15
16 CP=cp -f
17 RM=rm -f
18 MD=mkdir -p
19
20 ADD_CFLAGS=
21 ADD_DFLAGS=
22
23 #CFLAGS=-O3 $(ADD_CFLAGS)
24 CFLAGS=$(ADD_CFLAGS)
25
26 #DFLAGS=-release -O3 -inline -w $(ADD_DFLAGS)
27 DFLAGS=$(ADD_DFLAGS)
28
29 #TFLAGS=-O3 -inline $(ADD_DFLAGS)
30 TFLAGS=$(ADD_DFLAGS)
31
32 DOCFLAGS=-version=DDoc
33
34 CC=gcc
35 LC=llvm-ar rsv
36 DC=ldc
37
38 LIB_DEST=..
39
40 .SUFFIXES: .s .S .c .cpp .d .html .o .bc
41
42 .s.o:
43 $(CC) -c $(CFLAGS) $< -o$@
44
45 .S.o:
46 $(CC) -c $(CFLAGS) $< -o$@
47
48 .c.o:
49 $(CC) -c $(CFLAGS) $< -o$@
50
51 .cpp.o:
52 g++ -c $(CFLAGS) $< -o$@
53
54 .d.bc:
55 $(DC) -c $(DFLAGS) $< -of$@
56
57 .d.html:
58 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
59 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
60
61 targets : lib doc
62 all : lib doc
63 lib : stub.lib
64 doc : stub.doc
65
66 ######################################################
67
68 ALL_OBJS= \
69 gc.bc
70
71 ######################################################
72
73 ALL_DOCS=
74
75 ######################################################
76
77 stub.lib : $(LIB_TARGET)
78
79 $(LIB_TARGET) : $(ALL_OBJS)
80 $(RM) $@
81 $(LC) $@ $(ALL_OBJS)
82
83 stub.doc : $(ALL_DOCS)
84 echo No documentation available.
85
86 ######################################################
87
88 clean :
89 find . -name "*.di" | xargs $(RM)
90 $(RM) $(ALL_OBJS)
91 $(RM) $(ALL_DOCS)
92 $(RM) $(LIB_MASK)
93
94 install :
95 $(MD) $(LIB_DEST)
96 $(CP) $(LIB_MASK) $(LIB_DEST)/.