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