1 # Makefile to build the garbage collector D library for Win32
\r
2 # Designed to work with DigitalMars make
\r
7 # Build the garbage collector library
\r
9 # Generate documentation
\r
11 # Delete unneeded files created by build process
\r
13 LIB_TARGET=druntime-gc-basic.lib
\r
14 LIB_MASK=druntime-gc-basic*.lib
\r
23 CFLAGS=-mn -6 -r $(ADD_CFLAGS)
\r
24 #CFLAGS=-g -mn -6 -r $(ADD_CFLAGS)
\r
26 DFLAGS=-release -O -inline -w -nofloat $(ADD_DFLAGS)
\r
27 #DFLAGS=-g -w -nofloat $(ADD_DFLAGS)
\r
29 TFLAGS=-O -inline -w -nofloat $(ADD_DFLAGS)
\r
30 #TFLAGS=-g -w -nofloat $(ADD_DFLAGS)
\r
32 DOCFLAGS=-version=DDoc
\r
38 LIB_DEST=..\..\..\lib
\r
40 .DEFAULT: .asm .c .cpp .d .html .obj
\r
46 $(CC) -c $(CFLAGS) $< -o$@
\r
49 $(CC) -c $(CFLAGS) $< -o$@
\r
52 $(DC) -c $(DFLAGS) $< -of$@
\r
55 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
\r
56 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
\r
63 ######################################################
\r
72 ######################################################
\r
76 ######################################################
\r
78 basic.lib : $(LIB_TARGET)
\r
80 $(LIB_TARGET) : $(ALL_OBJS)
\r
82 $(LC) -c -n $@ $(ALL_OBJS)
\r
84 basic.doc : $(ALL_DOCS)
\r
85 @echo No documentation available.
\r
87 ######################################################
\r
97 $(CP) $(LIB_MASK) $(LIB_DEST)\.
\r