1 # Makefile to build the compiler runtime D library for Win32
2 # Designed to work with DigitalMars make
7 # Build the compiler runtime library
9 # Generate documentation
11 # Delete unneeded files created by build process
13 LIB_TARGET=druntime-rt-dmd.lib
14 LIB_MASK=druntime-rt-dmd*.lib
20 CFLAGS=-mn -6 -r $(ADD_CFLAGS)
21 #CFLAGS=-g -mn -6 -r $(ADD_CFLAGS)
23 DFLAGS=-release -O -inline -w -nofloat $(ADD_DFLAGS)
24 #DFLAGS=-g -w -nofloat $(ADD_DFLAGS)
26 TFLAGS=-O -inline -w -nofloat $(ADD_DFLAGS)
27 #TFLAGS=-g -w -nofloat $(ADD_DFLAGS)
29 DOCFLAGS=-version=DDoc
37 .DEFAULT: .asm .c .cpp .d .html .obj
43 $(CC) -c $(CFLAGS) $< -o$@
46 $(CC) -c $(CFLAGS) $< -o$@
49 $(DC) -c $(DFLAGS) $< -of$@
52 $(DC) -c -o- $(DOCFLAGS) -Df$*.html dmd.ddoc $<
59 ######################################################
92 # NOTE: trace.obj and cover.obj are not necessary for a successful build
93 # as both are used for debugging features (profiling and coverage)
94 # NOTE: a pre-compiled minit.obj has been provided in dmd for Win32 and
95 # minit.asm is not used by dmd for linux
106 typeinfo\ti_Acdouble.obj \
107 typeinfo\ti_Acfloat.obj \
108 typeinfo\ti_Acreal.obj \
109 typeinfo\ti_Adouble.obj \
110 typeinfo\ti_Afloat.obj \
112 typeinfo\ti_Aint.obj \
113 typeinfo\ti_Along.obj \
114 typeinfo\ti_Areal.obj \
115 typeinfo\ti_Ashort.obj \
116 typeinfo\ti_byte.obj \
118 typeinfo\ti_cdouble.obj \
119 typeinfo\ti_cfloat.obj \
120 typeinfo\ti_char.obj \
121 typeinfo\ti_creal.obj \
122 typeinfo\ti_dchar.obj \
123 typeinfo\ti_delegate.obj \
124 typeinfo\ti_double.obj \
125 typeinfo\ti_float.obj \
126 typeinfo\ti_idouble.obj \
127 typeinfo\ti_ifloat.obj \
128 typeinfo\ti_int.obj \
129 typeinfo\ti_ireal.obj \
130 typeinfo\ti_long.obj \
131 typeinfo\ti_ptr.obj \
132 typeinfo\ti_real.obj \
133 typeinfo\ti_short.obj \
134 typeinfo\ti_ubyte.obj \
135 typeinfo\ti_uint.obj \
136 typeinfo\ti_ulong.obj \
137 typeinfo\ti_ushort.obj \
138 typeinfo\ti_void.obj \
139 typeinfo\ti_wchar.obj
146 ######################################################
150 ######################################################
152 dmd.lib : $(LIB_TARGET)
154 $(LIB_TARGET) : $(ALL_OBJS)
156 $(LC) -c -n $@ $(ALL_OBJS) minit.obj
158 dmd.doc : $(ALL_DOCS)
159 @echo No documentation available.
161 ######################################################
171 $(CP) $(LIB_MASK) $(LIB_DEST)\.