1 # Makefile to build the composite D runtime library for Win32
2 # Designed to work with DigitalMars make
7 # Build the runtime library
9 # Generate documentation
11 # Delete unneeded files created by build process
15 LIB_TARGET=$(LIB_BASE)$(LIB_BUILD).lib
16 LIB_MASK=$(LIB_BASE)*.lib
17 DUP_TARGET=druntime$(LIB_BUILD).lib
18 DUP_MASK=druntime*.lib
26 LIB_CC=$(DIR_CC)\druntime-core$(LIB_BUILD).lib
27 LIB_RT=$(DIR_RT)\druntime-rt-dmd$(LIB_BUILD).lib
28 LIB_GC=$(DIR_GC)\druntime-gc-basic$(LIB_BUILD).lib
46 ######################################################
50 ######################################################
54 ######################################################
57 make -fdmd-win32.mak lib MAKE_LIB="unittest"
58 $(DC) -unittest unittest ..\import\core\stdc\stdarg -defaultlib="$(DUP_TARGET)" -debuglib="$(DUP_TARGET)"
63 make -fdmd-win32.mak lib MAKE_LIB="release"
66 make -fdmd-win32.mak lib MAKE_LIB="debug" LIB_BUILD="-d"
68 ######################################################
72 make -fwin32.mak $(MAKE_LIB) DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
75 make -fwin32.mak $(MAKE_LIB) DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
78 make -fwin32.mak $(MAKE_LIB) DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
81 make -fwin32.mak $(MAKE_LIB) DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
84 $(LC) -c -n $(LIB_TARGET) $(LIB_CC) $(LIB_RT) $(LIB_GC)
86 copy $(LIB_TARGET) $(DUP_TARGET)
91 make -fwin32.mak doc DC=$(DC)
94 make -fwin32.mak doc DC=$(DC)
97 make -fwin32.mak doc DC=$(DC)
100 make -fwin32.mak doc DC=$(DC)
103 ######################################################
110 make -fwin32.mak clean
113 make -fwin32.mak clean
116 make -fwin32.mak clean
119 make -fwin32.mak clean
123 $(RM) unittest.exe unittest.obj unittest.map
127 make -fwin32.mak install
130 make -fwin32.mak install
133 make -fwin32.mak install
136 make -fwin32.mak install
138 $(CP) $(LIB_MASK) $(LIB_DEST)\.
139 $(CP) $(DUP_MASK) $(LIB_DEST)\.