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