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