1 # Makefile to build the D runtime library core components for Win32
\r
2 # Designed to work with DigitalMars make
\r
7 # Build the common library
\r
9 # Generate documentation
\r
11 # Delete unneeded files created by build process
\r
13 LIB_TARGET=druntime-core.lib
\r
14 LIB_MASK=druntime-core*.lib
\r
23 CFLAGS=-mn -6 -r $(ADD_CFLAGS)
\r
24 #CFLAGS=-g -mn -6 -r $(ADD_CFLAGS)
\r
26 DFLAGS=-release -O -inline -w -nofloat $(ADD_DFLAGS)
\r
27 #DFLAGS=-g -w -nofloat $(ADD_DFLAGS)
\r
29 TFLAGS=-O -inline -w -nofloat $(ADD_DFLAGS)
\r
30 #TFLAGS=-g -w -nofloat $(ADD_DFLAGS)
\r
32 DOCFLAGS=-version=DDoc
\r
38 INC_DEST=..\..\import
\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) -Hf$*.di $< -of$@
\r
55 # $(DC) -c $(DFLAGS) $< -of$@
\r
58 $(DC) -c -o- $(DOCFLAGS) -Df$*.html $<
\r
66 ######################################################
\r
70 core\exception.obj \
\r
82 ######################################################
\r
85 core\bitmanip.html \
\r
86 core\exception.html \
\r
93 ######################################################
\r
95 core.lib : $(LIB_TARGET)
\r
97 $(LIB_TARGET) : $(ALL_OBJS)
\r
99 $(LC) -c -n $@ $(ALL_OBJS)
\r
101 core.doc : $(ALL_DOCS)
\r
102 @echo Documentation generated.
\r
104 ######################################################
\r
108 core\bitmanip.obj : core\bitmanip.d
\r
109 $(DC) -c $(DFLAGS) core\bitmanip.d -of$@
\r
113 core\thread.obj : core\thread.d
\r
114 $(DC) -c $(DFLAGS) -d -Hf$*.di core\thread.d -of$@
\r
116 ######################################################
\r
125 $(MD) $(INC_DEST)\.
\r
126 $(CP) /s *.di $(INC_DEST)\.
\r
128 $(CP) /s *.html $(DOC_DEST)\.
\r
130 $(CP) $(LIB_MASK) $(LIB_DEST)\.
\r