summaryrefslogtreecommitdiff
path: root/windows/mingw/_mingw.mak
diff options
context:
space:
mode:
authorShmuel Zeigerman <solomuz0@gmail.com>2017-06-20 22:08:57 +0300
committerShmuel Zeigerman <solomuz0@gmail.com>2017-06-20 22:08:57 +0300
commit325731b7e867c4307f3d7f83c1fcd25cb24617d9 (patch)
treed4d7abeaf5026ca6233738583fc2b5bdb9079ffd /windows/mingw/_mingw.mak
parent8216ecdc093ea33979191469f7b4b4f939976359 (diff)
downloadlrexlib-325731b7e867c4307f3d7f83c1fcd25cb24617d9.tar.gz
Add support for PCRE2 library. (All currently available tests written for PCRE pass).
Diffstat (limited to 'windows/mingw/_mingw.mak')
-rw-r--r--windows/mingw/_mingw.mak22
1 files changed, 14 insertions, 8 deletions
diff --git a/windows/mingw/_mingw.mak b/windows/mingw/_mingw.mak
index 77b69b7..a1a1b77 100644
--- a/windows/mingw/_mingw.mak
+++ b/windows/mingw/_mingw.mak
@@ -1,32 +1,35 @@
# Use with GNU Make.
+# Lrexlib version
VERSION = 2.8.0
# User Settings ------------------------------------------------------------
-# Target Lua version (51 for Lua 5.1; 52 for Lua 5.2).
+# Target Lua version (51 for Lua 5.1, etc.)
LUAVERSION = 51
LUADOTVERSION = $(subst 5,5.,$(LUAVERSION))
# Target bitness: 32 or 64
DIRBIT = 32
+# GCC location (GCC32 and GCC64 are defined environment variables)
+PATH = $(GCC$(DIRBIT))
# INSTALLPATH : Path to install the built DLL.
-# LUADLL : Name of Lua DLL to link to (.dll should be omitted).
-# LUAEXE : Name of Lua interpreter.
+# LUADLL : Lua DLL to link to (.dll should be omitted).
+# LUAEXE : Lua interpreter.
# LUAINC : Path of Lua include files.
# LIBPATH : Path of lua51.dll, lua52.dll, pcre.dll, etc.
INSTALLPATH = s:\exe\lib$(DIRBIT)\lua\$(LUADOTVERSION)
LUADLL = lua$(LUAVERSION)
-LUAINC = s:\progr\work\system\include\lua\$(LUADOTVERSION)
-LIBPATH = c:\exe$(DIRBIT)
+LUAINC = $(PATH_SYSTEM)\include\lua\$(LUADOTVERSION)
+LIBPATH = $(CROOT)\Programs\EXE$(DIRBIT)
ifeq ($(LUAVERSION),51)
- LUAEXE = lua.exe
+ LUAEXE = $(LIBPATH)\lua.exe
CREATEGLOBAL = -DREX_CREATEGLOBALVAR
else
- LUAEXE = lua$(LUAVERSION).exe
+ LUAEXE = $(LIBPATH)\lua$(LUAVERSION).exe
endif
ifeq ($(LUAVERSION),53)
@@ -49,7 +52,7 @@ LIBS = -l$(LUADLL) -m$(DIRBIT) -s $(MYLIBS)
SRCPATH = ..\..\src
TESTPATH = ..\..\test
-.PHONY: all install test clean
+.PHONY: all install test vtest clean
vpath %.c $(SRCPATH);$(SRCPATH)\$(PROJDIR)
vpath %.h $(SRCPATH);$(SRCPATH)\$(PROJDIR)
@@ -64,6 +67,9 @@ install: $(BININSTALL)
test:
cd $(TESTPATH) && $(LUAEXE) runtest.lua $(TESTNAME) -d$(CURDIR)
+vtest:
+ cd $(TESTPATH) && $(LUAEXE) runtest.lua -v $(TESTNAME) -d$(CURDIR)
+
$(BIN): $(OBJ) $(DEFFILE)
$(CC) $(DEFFILE) $(OBJ) -L$(LIBPATH) $(LIBS) -o $@ -shared