From 6653afcb18794da0db0f7306e39f9ea067151033 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sat, 8 Oct 2011 18:38:19 +0200 Subject: Add the generation of the import lib to the windows make file. --- windows.mak | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'windows.mak') diff --git a/windows.mak b/windows.mak index 12aa536..1f7e6ae 100644 --- a/windows.mak +++ b/windows.mak @@ -2,8 +2,10 @@ DMD=dmd DFLAGS=-O -release LIBNAME=DMagick.lib +MAGICKCOREDLLNAME=CORE_RL_magick_.dll +MAGICKCORELIBNAME=MagickCore.lib -target : $(LIBNAME) +target : $(LIBNAME) $(MAGICKCORELIBNAME) SOURCE= \ dmagick\Array.d \ @@ -521,14 +523,22 @@ docs\c\xwindow.html: dmagick\c\xwindow.d $(LIBNAME): $(SOURCE) $(DMD) -lib -of$(LIBNAME) $(DFLAGS) $(SOURCE) -unittest: stubmain.d $(SOURCE) - $(DMD) -of$@.exe -unittest $(DFLAGS) $** MagickCore.lib +unittest: stubmain.d $(SOURCE) $(MAGICKCORELIBNAME) + $(DMD) -of$@.exe -unittest $(DFLAGS) $** unittest +$(MAGICKCORELIBNAME): + @echo @FOR /F "delims=;" %%i IN ('where $(MAGICKCOREDLLNAME)') DO @copy "%%i" > copydll.bat + copydll + implib /s $@ $(MAGICKCOREDLLNAME) + @del copydll.bat + del $(MAGICKCOREDLLNAME) + stubmain.d: echo void main(){} > $@ clean: del $(LIBNAME) + del $(MAGICKCORELIBNAME) del $(DOCS) del stubmain.d unittest.obj unittest.exe -- cgit v1.2.3