Mercurial > projects > ldc
annotate tango/lib/gc/stub/llvmdc.mak @ 139:0ab29b838084 trunk
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
Fixed: tango.io.Console seems to be working now.
author | lindquist |
---|---|
date | Tue, 22 Jan 2008 00:01:16 +0100 |
parents | 1700239cab2e |
children | a168a2c3ea48 |
rev | line source |
---|---|
132 | 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 | |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
132
diff
changeset
|
23 #CFLAGS=-O $(ADD_CFLAGS) |
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
132
diff
changeset
|
24 CFLAGS=-g $(ADD_CFLAGS) |
132 | 25 |
26 ### warnings disabled because gcx has issues ### | |
27 | |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
132
diff
changeset
|
28 #DFLAGS=-release -O -inline $(ADD_DFLAGS) |
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
132
diff
changeset
|
29 DFLAGS=-g $(ADD_DFLAGS) |
132 | 30 |
139
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
132
diff
changeset
|
31 #TFLAGS=-O -inline $(ADD_DFLAGS) |
0ab29b838084
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
lindquist
parents:
132
diff
changeset
|
32 TFLAGS=-g $(ADD_DFLAGS) |
132 | 33 |
34 DOCFLAGS=-version=DDoc | |
35 | |
36 CC=gcc | |
37 LC=llvm-ar rsv | |
38 DC=llvmdc | |
39 | |
40 LIB_DEST=.. | |
41 | |
42 .SUFFIXES: .s .S .c .cpp .d .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 $< | |
61 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $< | |
62 | |
63 targets : lib doc | |
64 all : lib doc | |
65 lib : stub.lib | |
66 doc : stub.doc | |
67 | |
68 ###################################################### | |
69 | |
70 ALL_OBJS= \ | |
71 gc.bc | |
72 | |
73 ###################################################### | |
74 | |
75 ALL_DOCS= | |
76 | |
77 ###################################################### | |
78 | |
79 stub.lib : $(LIB_TARGET) | |
80 | |
81 $(LIB_TARGET) : $(ALL_OBJS) | |
82 $(RM) $@ | |
83 $(LC) $@ $(ALL_OBJS) | |
84 | |
85 stub.doc : $(ALL_DOCS) | |
86 echo No documentation available. | |
87 | |
88 ###################################################### | |
89 | |
90 clean : | |
91 find . -name "*.di" | xargs $(RM) | |
92 $(RM) $(ALL_OBJS) | |
93 $(RM) $(ALL_DOCS) | |
94 $(RM) $(LIB_MASK) | |
95 | |
96 install : | |
97 $(MD) $(LIB_DEST) | |
98 $(CP) $(LIB_MASK) $(LIB_DEST)/. |