comparison tango/lib/gc/stub/win32.mak @ 132:1700239cab2e trunk

[svn r136] MAJOR UNSTABLE UPDATE!!! Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
author lindquist
date Fri, 11 Jan 2008 17:57:40 +0100
parents
children
comparison
equal deleted inserted replaced
131:5825d48b27d1 132:1700239cab2e
1 # Makefile to build the garbage collector D library for Win32
2 # Designed to work with DigitalMars 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=tango-gc-stub.lib
14 LIB_MASK=tango-gc-stub*.lib
15
16 CP=xcopy /y
17 RM=del /f
18 MD=mkdir
19
20 ADD_CFLAGS=
21 ADD_DFLAGS=
22
23 CFLAGS=-mn -6 -r $(ADD_CFLAGS)
24 #CFLAGS=-g -mn -6 -r $(ADD_CFLAGS)
25
26 ### warnings disabled because gcx has issues ###
27
28 DFLAGS=-release -O -inline $(ADD_DFLAGS)
29 #DFLAGS=-g -release $(ADD_DFLAGS)
30
31 TFLAGS=-O -inline $(ADD_DFLAGS)
32 #TFLAGS=-g $(ADD_DFLAGS)
33
34 DOCFLAGS=-version=DDoc
35
36 CC=dmc
37 LC=lib
38 DC=dmd
39
40 LIB_DEST=..
41
42 .DEFAULT: .asm .c .cpp .d .html .obj
43
44 .asm.obj:
45 $(CC) -c $<
46
47 .c.obj:
48 $(CC) -c $(CFLAGS) $< -o$@
49
50 .cpp.obj:
51 $(CC) -c $(CFLAGS) $< -o$@
52
53 .d.obj:
54 $(DC) -c $(DFLAGS) $< -of$@
55
56 .d.html:
57 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
58 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
59
60 targets : lib doc
61 all : lib doc
62 lib : stub.lib
63 doc : stub.doc
64
65 ######################################################
66
67 ALL_OBJS= \
68 gc.obj
69
70 ######################################################
71
72 ALL_DOCS=
73
74 ######################################################
75
76 stub.lib : $(LIB_TARGET)
77
78 $(LIB_TARGET) : $(ALL_OBJS)
79 $(RM) $@
80 $(LC) -c -n $@ $(ALL_OBJS)
81
82 stub.doc : $(ALL_DOCS)
83 @echo No documentation available.
84
85 ######################################################
86
87 clean :
88 $(RM) /s *.di
89 $(RM) $(ALL_OBJS)
90 $(RM) $(ALL_DOCS)
91 $(RM) $(LIB_MASK)
92
93 install :
94 $(MD) $(LIB_DEST)
95 $(CP) $(LIB_MASK) $(LIB_DEST)\.