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=tango-gc-stub.lib
14 LIB_MASK=tango-gc-stub*.lib
23 CFLAGS=-mn -6 -r $(ADD_CFLAGS)
24 #CFLAGS=-g -mn -6 -r $(ADD_CFLAGS)
26 ### warnings disabled because gcx has issues ###
28 DFLAGS=-release -O -inline $(ADD_DFLAGS)
29 #DFLAGS=-g -release $(ADD_DFLAGS)
31 TFLAGS=-O -inline $(ADD_DFLAGS)
32 #TFLAGS=-g $(ADD_DFLAGS)
34 DOCFLAGS=-version=DDoc
42 .DEFAULT: .asm .c .cpp .d .html .obj
48 $(CC) -c $(CFLAGS) $< -o$@
51 $(CC) -c $(CFLAGS) $< -o$@
54 $(DC) -c $(DFLAGS) $< -of$@
57 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
58 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
65 ######################################################
70 ######################################################
74 ######################################################
76 stub.lib : $(LIB_TARGET)
78 $(LIB_TARGET) : $(ALL_OBJS)
80 $(LC) -c -n $@ $(ALL_OBJS)
82 stub.doc : $(ALL_DOCS)
83 @echo No documentation available.
85 ######################################################
95 $(CP) $(LIB_MASK) $(LIB_DEST)\.