summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2011-10-08 18:38:19 +0200
committerMike Wey2011-10-08 18:38:19 +0200
commit6653afcb18794da0db0f7306e39f9ea067151033 (patch)
treed563759869319093b14a2bb8461d73fa0861ad04
parentace9cc9b77804c4ebc0d372381e41799b58850c5 (diff)
Add the generation of the import lib to the windows make file.
-rw-r--r--windows.mak16
1 files changed, 13 insertions, 3 deletions
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