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-stub.lib
14 LIB_MASK=druntime-gc-stub*.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)
30 TFLAGS=-O -inline -w -nofloat $(ADD_DFLAGS)
31 #TFLAGS=-g -w -nofloat $(ADD_DFLAGS)
33 DOCFLAGS=-version=DDoc
41 .DEFAULT: .asm .c .cpp .d .html .obj
47 $(CC) -c $(CFLAGS) $< -o$@
50 $(CC) -c $(CFLAGS) $< -o$@
53 $(DC) -c $(DFLAGS) $< -of$@
56 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
57 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
64 ######################################################
69 ######################################################
73 ######################################################
75 stub.lib : $(LIB_TARGET)
77 $(LIB_TARGET) : $(ALL_OBJS)
79 $(LC) -c -n $@ $(ALL_OBJS)
81 stub.doc : $(ALL_DOCS)
82 @echo No documentation available.
84 ######################################################
94 $(CP) $(LIB_MASK) $(LIB_DEST)\.
95 copy gc.obj $(LIB_DEST)\gcstub.obj