X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/5a07183e26b7ca151959629420a83f59af5339f3..0edf44cfdbe2262d5c50bfa7368ba2692600babc:/src/dmd-win32.mak diff --git a/src/dmd-win32.mak b/src/dmd-win32.mak index 3a637b8..d7c83b1 100644 --- a/src/dmd-win32.mak +++ b/src/dmd-win32.mak @@ -1,101 +1,104 @@ -# Makefile to build the composite D runtime library for Win32 -# Designed to work with DigitalMars make -# Targets: -# make -# Same as make all -# make lib -# Build the runtime library -# make doc -# Generate documentation -# make clean -# Delete unneeded files created by build process - -LIB_TARGET=druntime-dmd.lib -LIB_MASK=druntime-dmd*.lib - -DIR_CC=core -DIR_RT=compiler\dmd -DIR_GC=gc\basic - -LIB_CC=$(DIR_CC)\druntime-core.lib -LIB_RT=$(DIR_RT)\druntime-rt-dmd.lib -LIB_GC=$(DIR_GC)\druntime-gc-basic.lib - -CP=xcopy /y -RM=del /f -MD=mkdir - -CC=dmc -LC=lib -DC=dmd - -LIB_DEST=..\lib - -ADD_CFLAGS= -ADD_DFLAGS= - -targets : lib doc -all : lib doc - -###################################################### - -ALL_OBJS= - -###################################################### - -ALL_DOCS= - -###################################################### - -lib : $(ALL_OBJS) - cd $(DIR_CC) - make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" - cd .. - cd $(DIR_RT) - make -fwin32.mak lib - cd ..\.. - cd $(DIR_GC) - make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" - cd ..\.. - $(RM) $(LIB_TARGET) - $(LC) -c -n $(LIB_TARGET) $(LIB_CC) $(LIB_RT) $(LIB_GC) - -doc : $(ALL_DOCS) - cd $(DIR_CC) - make -fwin32.mak doc - cd .. - cd $(DIR_RT) - make -fwin32.mak doc - cd ..\.. - cd $(DIR_GC) - make -fwin32.mak doc - cd ..\.. - -###################################################### - -clean : - $(RM) /s *.di - $(RM) $(ALL_OBJS) - $(RM) $(ALL_DOCS) - cd $(DIR_CC) - make -fwin32.mak clean - cd .. - cd $(DIR_RT) - make -fwin32.mak clean - cd ..\.. - cd $(DIR_GC) - make -fwin32.mak clean - cd ..\.. - $(RM) $(LIB_MASK) - -install : - cd $(DIR_CC) - make -fwin32.mak install - cd .. - cd $(DIR_RT) - make -fwin32.mak install - cd ..\.. - cd $(DIR_GC) - make -fwin32.mak install - cd ..\.. - $(CP) $(LIB_MASK) $(LIB_DEST)\. +# Makefile to build the composite D runtime library for Win32 +# Designed to work with DigitalMars make +# Targets: +# make +# Same as make all +# make lib +# Build the runtime library +# make doc +# Generate documentation +# make clean +# Delete unneeded files created by build process + +LIB_TARGET=druntime-dmd.lib +DUP_TARGET=druntime.lib +LIB_MASK=druntime*.lib + +DIR_CC=common +DIR_RT=compiler\dmd +DIR_GC=gc\basic + +LIB_CC=$(DIR_CC)\druntime-core.lib +LIB_RT=$(DIR_RT)\druntime-rt-dmd.lib +LIB_GC=$(DIR_GC)\druntime-gc-basic.lib + +CP=xcopy /y +RM=del /f +MD=mkdir + +CC=dmc +LC=lib +DC=dmd + +LIB_DEST=..\lib + +ADD_CFLAGS= +ADD_DFLAGS= + +targets : lib doc +all : lib doc + +###################################################### + +ALL_OBJS= + +###################################################### + +ALL_DOCS= + +###################################################### + +lib : $(ALL_OBJS) + cd $(DIR_CC) + make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" + cd .. + cd $(DIR_RT) + make -fwin32.mak lib DC=$(DC) + cd ..\.. + cd $(DIR_GC) + make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)" + cd ..\.. + $(RM) $(LIB_TARGET) + $(LC) -c -n $(LIB_TARGET) $(LIB_CC) $(LIB_RT) $(LIB_GC) + $(RM) $(DUP_TARGET) + copy $(LIB_TARGET) $(DUP_TARGET) + +doc : $(ALL_DOCS) + cd $(DIR_CC) + make -fwin32.mak doc DC=$(DC) + cd .. + cd $(DIR_RT) + make -fwin32.mak doc DC=$(DC) + cd ..\.. + cd $(DIR_GC) + make -fwin32.mak doc DC=$(DC) + cd ..\.. + +###################################################### + +clean : + $(RM) /s *.di + $(RM) $(ALL_OBJS) + $(RM) $(ALL_DOCS) + cd $(DIR_CC) + make -fwin32.mak clean + cd .. + cd $(DIR_RT) + make -fwin32.mak clean + cd ..\.. + cd $(DIR_GC) + make -fwin32.mak clean + cd ..\.. + $(RM) $(LIB_MASK) + +install : + cd $(DIR_CC) + make -fwin32.mak install + cd .. + cd $(DIR_RT) + make -fwin32.mak install + cd ..\.. + cd $(DIR_GC) + make -fwin32.mak install + cd ..\.. + $(CP) $(LIB_MASK) $(LIB_DEST)\.