1 # Makefile to build the garbage collector D library for Posix
\r
2 # Designed to work with GNU 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=libdruntime-gc-basic.a
\r
14 LIB_MASK=libdruntime-gc-basic*.a
\r
23 CFLAGS=-O $(ADD_CFLAGS)
\r
24 #CFLAGS=-g $(ADD_CFLAGS)
\r
26 DFLAGS=-release -O -inline -w -nofloat -version=Posix $(ADD_DFLAGS)
\r
27 #DFLAGS=-g -w -nofloat -version=Posix $(ADD_DFLAGS)
\r
29 TFLAGS=-O -inline -w -nofloat -version=Posix $(ADD_DFLAGS)
\r
30 #TFLAGS=-g -w -nofloat -version=Posix $(ADD_DFLAGS)
\r
32 DOCFLAGS=-version=DDoc -version=Posix
\r
38 LIB_DEST=../../../lib
\r
40 .SUFFIXES: .s .S .c .cpp .d .html .o
\r
43 $(CC) -c $(CFLAGS) $< -o$@
\r
46 $(CC) -c $(CFLAGS) $< -o$@
\r
49 $(CC) -c $(CFLAGS) $< -o$@
\r
52 g++ -c $(CFLAGS) $< -o$@
\r
55 $(DC) -c $(DFLAGS) $< -of$@
\r
58 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
\r
59 # $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
\r
66 ######################################################
\r
75 ######################################################
\r
79 ######################################################
\r
81 basic.lib : $(LIB_TARGET)
\r
83 $(LIB_TARGET) : $(ALL_OBJS)
\r
85 $(LC) $@ $(ALL_OBJS)
\r
87 basic.doc : $(ALL_DOCS)
\r
88 echo No documentation available.
\r
90 ######################################################
\r
93 find . -name "*.di" | xargs $(RM)
\r
100 $(CP) $(LIB_MASK) $(LIB_DEST)/.
\r