Mercurial > projects > ldc
comparison tests/testincludes/Makefile @ 326:d7e42b5d8ccd trunk
[svn r347] Foundation for adding tangobos to test environment is in place.
author | ChristianK |
---|---|
date | Thu, 10 Jul 2008 21:29:15 +0200 |
parents | |
children | f7190d9eb70c |
comparison
equal
deleted
inserted
replaced
325:3c8c58c24aa8 | 326:d7e42b5d8ccd |
---|---|
1 # Copied from tango runtime makefile. | |
2 # Designed to work with GNU make | |
3 # Targets: | |
4 # make | |
5 # Same as make all | |
6 # make lib | |
7 # Build the common library | |
8 # make doc | |
9 # Generate documentation | |
10 # make clean | |
11 # Delete unneeded files created by build process | |
12 | |
13 LIB_TARGET=libtangobos-partial.a | |
14 LIB_MASK=libtangobos-partial.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=-g $(ADD_CFLAGS) | |
25 | |
26 #DFLAGS=-release -O3 -inline -w $(ADD_DFLAGS) | |
27 DFLAGS=-g -w -noasm $(ADD_DFLAGS) | |
28 | |
29 #TFLAGS=-O3 -inline -w $(ADD_DFLAGS) | |
30 TFLAGS=-g -w -noasm $(ADD_DFLAGS) | |
31 | |
32 DOCFLAGS=-version=DDoc | |
33 | |
34 CC=gcc | |
35 LC=llvm-ar rsv | |
36 CLC=ar rsv | |
37 DC=llvmdc | |
38 LLC=llvm-as | |
39 LLVMLINK=llvm-link | |
40 LLC=llc | |
41 | |
42 INC_DEST= | |
43 LIB_DEST= | |
44 DOC_DEST= | |
45 | |
46 .SUFFIXES: .d .bc | |
47 | |
48 .d.bc: | |
49 $(DC) -c $(DFLAGS) $< -of$@ | |
50 # $(DC) -c $(DFLAGS) $< -of$@ | |
51 | |
52 targets : lib | |
53 all : lib | |
54 lib : tangobos.lib | |
55 | |
56 ###################################################### | |
57 | |
58 OBJ_CORE= \ | |
59 std/gc.bc \ | |
60 # std/asserterror.bc \ | |
61 # std/math.bc \ | |
62 # std/stdarg.bc | |
63 # std/format.bc \ | |
64 | |
65 ALL_OBJS= \ | |
66 $(OBJ_CORE) | |
67 | |
68 ###################################################### | |
69 | |
70 tangobos.lib : $(LIB_TARGET) | |
71 | |
72 $(LIB_TARGET) : $(ALL_OBJS) | |
73 $(RM) $@ | |
74 $(LLVMLINK) -o=$(LIB_TARGET).bc `find -name "*.bc"` | |
75 $(LLC) -o=$(LIB_TARGET).s $(LIB_TARGET).bc | |
76 $(CC) -c -o $(LIB_TARGET) $(LIB_TARGET).s | |
77 | |
78 clean : | |
79 $(RM) $(ALL_OBJS) | |
80 find . -name "$(LIB_MASK)" | xargs $(RM) | |
81 |