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
82 ######################################################
\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 bitmanip.obj : bitmanip.d
\r
109 $(DC) -c $(DFLAGS) bitmanip.d -of$@
\r
113 thread.obj : thread.d
\r
114 $(DC) -c $(DFLAGS) -d -Hf$*.di thread.d -of$@
\r
116 ######################################################
\r
126 $(CP) /s *.di $(INC_DEST)\.
\r
128 $(CP) /s *.html $(DOC_DEST)\.
\r
130 $(CP) $(LIB_MASK) $(LIB_DEST)\.
\r