summaryrefslogtreecommitdiff
path: root/src/Make_ming.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-25 21:53:18 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-25 21:53:18 +0000
commit281bdcec60a64ccd0b613ecaf2379e46b21c9912 (patch)
treeee9ae0d64a0d6a1a9c79af614acb00f380e4e0f1 /src/Make_ming.mak
parentaab21c3533cde8f667e06548db858237870b70e7 (diff)
downloadvim-git-281bdcec60a64ccd0b613ecaf2379e46b21c9912.tar.gz
updated for version 7.0044
Diffstat (limited to 'src/Make_ming.mak')
-rw-r--r--src/Make_ming.mak25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/Make_ming.mak b/src/Make_ming.mak
index 2d8bbaf5c..a27ce5208 100644
--- a/src/Make_ming.mak
+++ b/src/Make_ming.mak
@@ -107,16 +107,26 @@ endif
# uncomment 'MZSCHEME' if you want a MzScheme-enabled version
#MZSCHEME=d:/plt
ifdef MZSCHEME
+ifndef DYNAMIC_MZSCHEME
+DYNAMIC_MZSCHEME=yes
+endif
+
ifndef MZSCHEME_VER
MZSCHEME_VER=205_000
endif
-# the modern MinGW can dynamically link to dlls directly
-# point MZSCHEME_LIBDIR to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
+
+ifeq (no,$(DYNAMIC_MZSCHEME))
+MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
+# the modern MinGW can dynamically link to dlls directly.
+# point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
# c:/windows/system32 isn't a good idea, use some other dir;
# to build you can put them in temp dir)
-ifndef MZSCHEME_LIBDIR
-MZSCHEME_LIBDIR=-L$(MZSCHEME)
+ifndef MZSCHEME_DLLS
+MZSCHEME_DLLS=$(MZSCHEME)
+endif
+MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS)
endif
+
endif
# Python support -- works with the ActiveState python 2.0 release (and others
@@ -270,6 +280,9 @@ endif
ifdef MZSCHEME
CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
+ifeq (yes, $(DYNAMIC_MZSCHEME))
+CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
+endif
endif
ifdef RUBY
@@ -461,10 +474,6 @@ LIB += -lperl$(PERL_VER)
endif
endif
-ifdef MZSCHEME
-MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
-endif
-
ifdef TCL
LIB += -L$(TCL)/lib
ifeq (yes, $(DYNAMIC_TCL))