diff options
author | Reuben Thomas <rrt@sc3d.org> | 2012-10-04 18:02:24 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2012-10-04 18:02:24 +0100 |
commit | 41d9fad85070f354b097b8be9aa34bd588314cdb (patch) | |
tree | 533aeb4f87143f79a1d057c23869f2f10b6573fe | |
parent | a3dd13c7a178a58ecabac18af29a38b71ec2e165 (diff) | |
download | lrexlib-41d9fad85070f354b097b8be9aa34bd588314cdb.tar.gz |
Replace build systems with LuaRocks.
A single Makefile remains to take care of tests, distribution, release
and documentation.
As a result, rockspecs are automatically generated for all lrexlib
flavours (previously, only POSIX and PCRE were available).
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 25 | ||||
-rw-r--r-- | NEWS | 12 | ||||
-rw-r--r-- | mkrockspecs.lua | 49 | ||||
-rw-r--r-- | rockspecs.lua | 125 | ||||
-rw-r--r-- | src/common.mak | 26 | ||||
-rw-r--r-- | src/defaults.mak | 17 | ||||
-rw-r--r-- | src/gnu/Makefile | 39 | ||||
-rw-r--r-- | src/oniguruma/Makefile | 38 | ||||
-rw-r--r-- | src/pcre/Makefile | 38 | ||||
-rw-r--r-- | src/posix/Makefile | 48 | ||||
-rw-r--r-- | src/tre/Makefile | 43 | ||||
-rw-r--r-- | test/oniguruma_sets.lua (renamed from test/onig_sets.lua) | 0 | ||||
-rw-r--r-- | test/runtest.lua | 12 | ||||
-rw-r--r-- | windows/mingw/Makefile | 26 | ||||
-rw-r--r-- | windows/mingw/_mingw.mak | 64 | ||||
-rw-r--r-- | windows/mingw/docs.mak | 13 | ||||
-rw-r--r-- | windows/mingw/rex_gnu.mak | 18 | ||||
-rw-r--r-- | windows/mingw/rex_onig.mak | 19 | ||||
-rw-r--r-- | windows/mingw/rex_pcre.mak | 19 | ||||
-rw-r--r-- | windows/mingw/rex_spencer.mak | 18 | ||||
-rw-r--r-- | windows/mingw/rex_tre.mak | 26 |
22 files changed, 200 insertions, 476 deletions
@@ -5,3 +5,4 @@ ChangeLog *.zip release-notes +/*.rockspec @@ -1,33 +1,22 @@ # Makefile for lrexlib -# See src/*/Makefile and src/defaults.mak for user-definable settings - -include src/defaults.mak +# See src/*/Makefile for user-definable settings REGNAMES = gnu pcre posix oniguruma tre PROJECT = lrexlib -VERSION = $(V).$(MINORV) +VERSION = 2.6.0 PROJECT_VERSIONED = $(PROJECT)-$(VERSION) DISTFILE = $(PROJECT_VERSIONED).zip -all: - @for i in $(REGNAMES); do \ - make -C src/$$i; \ - done - @make -C doc - -check: all +check: @for i in $(REGNAMES); do \ - make -C src/$$i check; \ + cd src/$$i && LUA_PATH="../../test/?.lua;$(LUA_PATH)" $(LUA) ../../test/runtest.lua -d. $$i && cd ../..; \ done -clean: - @for i in $(REGNAMES); do \ - make -C src/$$i clean; \ - done - @make -C doc clean +doc: + @make -C doc -dist: all +dist: doc git2cl > ChangeLog cd .. && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT) -x "lrexlib/.git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties" && mv $(DISTFILE) $(PROJECT) && cd $(PROJECT) && unzip $(DISTFILE) && mv $(PROJECT) $(PROJECT_VERSIONED) && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT_VERSIONED) && rm -rf $(PROJECT_VERSIONED) @@ -1,3 +1,15 @@ +2012-10-04 Release 2.7.0 + + * Added support for searching raw memory buffers (e.g. made with + alien). + * Fixed possible invalid code generation in C (thanks, Michael + Tautschnig). + * Generate LuaRock rockspecs for all modules. + * Greatly simplify UNIX build system, relying on LuaRocks. + * Allow POSIX REG_STARTEND to be used on any system supporting it. + * Add a test set for POSIX regex engine (thanks, Enrico Tassi). + * Simplify some code. + 2012-04-13 Release 2.6.0 * Added support for Lua 5.2. diff --git a/mkrockspecs.lua b/mkrockspecs.lua new file mode 100644 index 0000000..6a2506c --- /dev/null +++ b/mkrockspecs.lua @@ -0,0 +1,49 @@ +-- Generate the rockspecs + +require "std" + +if select ("#", ...) < 2 then + io.stderr:write "Usage: mkrockspecs VERSION MD5SUM\n" + os.exit () +end + +version = select (1, ...) +md5sum = select (2, ...) + +function format (x, indent) + indent = indent or "" + if type (x) == "table" then + local s = "{\n" + for i, v in pairs (x) do + if type (i) ~= "number" then + s = s..indent..i.." = "..format (v, indent.." ")..",\n" + end + end + for i, v in ipairs (x) do + s = s..indent..format (v, indent.." ")..",\n" + end + return s..indent:sub(1, -3).."}" + elseif type (x) == "string" then + return string.format ("%q", x) + else + return tostring (x) + end +end + +for f, spec in pairs (loadfile ("rockspecs.lua") ()) do + if f ~= "default" then + local specfile = "lrexlib-"..f:lower ().."-"..version.."-1.rockspec" + h = io.open (specfile, "w") + assert (h) + flavour = f -- a global, visible in loadfile + local specs = loadfile ("rockspecs.lua") () -- reload to get current flavour interpolated + local spec = table.merge (specs.default, specs[f]) + local s = "" + for i, v in pairs (spec) do + s = s..i.." = "..format (v, " ").."\n" + end + h:write (s) + h:close () + os.execute ("luarocks lint " .. specfile) + end +end diff --git a/rockspecs.lua b/rockspecs.lua new file mode 100644 index 0000000..8d5c06a --- /dev/null +++ b/rockspecs.lua @@ -0,0 +1,125 @@ +local flavours = {"PCRE", "POSIX", "oniguruma", "TRE", "GNU"} + +-- Rockspec data + +-- Variables to be interpolated: +-- +-- flavour: regex library +-- version +-- md5sum: checksum of distribution tarball + +-- When Lua 5.1 support is dropped, use an env argument with loadfile +-- instead of wrapping in a table +return { + +default = { + package="Lrexlib-"..flavour, + version=version.."-1", + source = { + url = "https://github.com/downloads/rrthomas/lrexlib/lrexlib-"..version..".zip", + md5 = md5sum + }, + description = { + summary = "Regular expression library binding ("..flavour.." flavour).", + detailed = [[ + Lrexlib is a regular expression library for Lua 5.1, which + provides bindings for several regular expression libraries. + This rock provides the ]]..flavour..[[ bindings. + ]], + homepage = "http://github.com/rrthomas/lrexlib", + license = "MIT/X11" + }, + dependencies = { + "lua >= 5.1" + }, +}, + +PCRE = { + external_dependencies = { + PCRE = { + header = "pcre.h", + library = "pcre" + } + }, + build = { + type = "builtin", + modules = { + rex_pcre = { + sources = {"src/common.c", "src/pcre/lpcre.c", "src/pcre/lpcre_f.c"}, + libraries = {"pcre"}, + incdirs = {"$(PCRE_INCDIR)"}, + libdirs = {"$(PCRE_LIBDIR)"} + } + } + } +}, + +POSIX = { + external_dependencies = { + POSIX = { + header = "regex.h", + } + }, + build = { + type = "builtin", + modules = { + rex_posix = {"src/common.c", "src/posix/lposix.c"} + } + } +}, + +oniguruma = { + external_dependencies = { + ONIG = { + header = "oniguruma.h", + library = "onig" + } + }, + build = { + type = "builtin", + modules = { + rex_onig = { + sources = {"src/common.c", "src/oniguruma/lonig.c", "src/oniguruma/lonig_f.c"}, + libraries = {"onig"}, + incdirs = {"$(ONIG_INCDIR)"}, + libdirs = {"$(ONIG_LIBDIR)"} + } + } + } +}, + +TRE = { + external_dependencies = { + TRE = { + header = "tre/tre.h", + library = "tre" + } + }, + build = { + type = "builtin", + modules = { + rex_tre = { + sources = {"src/common.c", "src/tre/ltre.c" --[[, "src/tre/tre_w.c"]]}, + libraries = {"tre"}, + incdirs = {"$(TRE_INCDIR)"}, + libdirs = {"$(TRE_LIBDIR)"} + } + } + } +}, + +GNU = { + external_dependencies = { + GNU = { + header = "regex.h", + } + }, + build = { + type = "builtin", + modules = { + rex_posix = {"src/common.c", "src/gnu/lgnu.c"} + } + } +}, + +} -- close wrapper table diff --git a/src/common.mak b/src/common.mak deleted file mode 100644 index 0652758..0000000 --- a/src/common.mak +++ /dev/null @@ -1,26 +0,0 @@ -# Rules for lrexlib - -TRG = rex_$(REGNAME) -DEFS = -DREX_OPENLIB=luaopen_$(TRG) -DREX_LIBNAME=\"$(TRG)\" -CFLAGS = $(MYCFLAGS) $(DEFS) $(INC) -TRG_AR = lib$(TRG).a -TRG_SO = $(TRG).so -LD = $(CC) -LDFLAGS= -shared -# For Darwin: -#LDFLAGS= -bundle -undefined dynamic_lookup - -all: $(TRG_AR) $(TRG_SO) - -$(TRG_AR): $(OBJ) - $(AR) $@ $^ - -$(TRG_SO): $(OBJ) - $(LD) -o $@.$V $(LDFLAGS) $^ $(LIB) $(LIB_LUA) - ln -fs $@.$V $@ - -clean: - rm -f $(OBJ) $(TRG_AR) $(TRG_SO)* - -check: all - LUA_PATH="../../test/?.lua;$(LUA_PATH)" $(LUA) ../../test/runtest.lua -d. $(REGNAME) diff --git a/src/defaults.mak b/src/defaults.mak deleted file mode 100644 index f2b2be9..0000000 --- a/src/defaults.mak +++ /dev/null @@ -1,17 +0,0 @@ -# default settings for lrexlib - -V = 2.6 -MINORV = 0 - -LUA = lua -INC_LUA = -LIB_LUA = - -# If the default settings don't work for your system, -# try to uncomment and edit the settings below. -#INC_LUA = -I/usr/include/lua5.1 -#LIB_LUA = -llua - -MYCFLAGS = -fPIC -W -Wall $(INC_LUA) $(INC_PCRE) -AR = ar rcu -CC = gcc diff --git a/src/gnu/Makefile b/src/gnu/Makefile deleted file mode 100644 index 8c3991d..0000000 --- a/src/gnu/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -# makefile for rex_gnu library - -include ../defaults.mak - -# === USER SETTINGS === -# =========================================================================== - -# These are default values. -INC = -LIB = - -# If the default settings don't work for your system, -# try to uncomment and edit the settings below. -# The default settings below work with a libgnu.a in the current directory, -# copied from any libgnu.a built with the regex module. -#INC = -I. -DREX_GNU_INCLUDE='"regex.h"' -#LIB = -L. -lgnu - -# Regex library name -REGNAME = gnu - -# =========================================================================== -# === END OF USER SETTINGS === - -OBJ = lgnu.o ../common.o - -include ../common.mak - -# static GNU regexp library binding -ar_gnu: $(TRG_AR) - -# dynamic GNU regexp library binding -so_gnu: $(TRG_SO) - -# Dependencies -lgnu.o: lgnu.c ../common.h ../algo.h -../common.o: ../common.c ../common.h - -# (End of Makefile) diff --git a/src/oniguruma/Makefile b/src/oniguruma/Makefile deleted file mode 100644 index bb788fd..0000000 --- a/src/oniguruma/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# makefile for rex_onig library - -include ../defaults.mak - -# === USER SETTINGS === -# =========================================================================== - -# These are default values. -INC = -LIB = -lonig - -# If the default settings don't work for your system, -# try to uncomment and edit the settings below. -#INC = -#LIB = -lonig - -# Target name -REGNAME = onig - -# =========================================================================== -# === END OF USER SETTINGS === - -OBJ = lonig.o lonig_f.o ../common.o - -include ../common.mak - -# static Oniguruma regexp library binding -ar_onig: $(TRG_AR) - -# dynamic Oniguruma regexp library binding -so_onig: $(TRG_SO) - -# Dependencies -lonig.o: lonig.c ../common.h ../algo.h -lonig_f.o: lonig_f.c ../common.h -../common.o: ../common.c ../common.h - -# (End of Makefile) diff --git a/src/pcre/Makefile b/src/pcre/Makefile deleted file mode 100644 index c7897e3..0000000 --- a/src/pcre/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# makefile for rex_pcre library - -include ../defaults.mak - -# === USER SETTINGS === -# =========================================================================== - -# These are default values. -INC = -LIB = -lpcre - -# If the default settings don't work for your system, -# try to uncomment and edit the settings below. -#INC = -#LIB = -lpcre - -# Target name -REGNAME = pcre - -# =========================================================================== -# === END OF USER SETTINGS === - -OBJ = lpcre.o lpcre_f.o ../common.o - -include ../common.mak - -# static PCRE regexp library binding -ar_pcre: $(TRG_AR) - -# dynamic PCRE regexp library binding -so_pcre: $(TRG_SO) - -# Dependencies -lpcre.o: lpcre.c ../common.h ../algo.h -lpcre_f.o: lpcre_f.c ../common.h -../common.o: ../common.c ../common.h - -# (End of Makefile) diff --git a/src/posix/Makefile b/src/posix/Makefile deleted file mode 100644 index a797b87..0000000 --- a/src/posix/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# makefile for rex_posix library - -include ../defaults.mak - -# === USER SETTINGS === -# =========================================================================== - -# These are default values. -INC = -LIB = - -# If the default settings don't work for your system, -# try to uncomment and edit the settings below. -#INC = -#LIB = -lc - -# WARNING: -# If you want to use a POSIX regex library that is not the system -# default, make sure you set both the INC and LIB variables correctly, -# as if a header file and library are used which do not match, you may -# well get segmentation faults (or worse). - -# The following lines work for the rxspencer library, when installed -# under /usr (note the above warning!) -#INC = -I/usr/include/rxspencer -#LIB = -lrxspencer - -# Target name -REGNAME = posix - -# =========================================================================== -# === END OF USER SETTINGS === - -OBJ = lposix.o ../common.o - -include ../common.mak - -# static POSIX regexp library binding -ar_posix: $(TRG_AR) - -# dynamic POSIX regexp library binding -so_posix: $(TRG_SO) - -# Dependencies -lposix.o: lposix.c ../common.h ../algo.h -../common.o: ../common.c ../common.h - -# (End of Makefile) diff --git a/src/tre/Makefile b/src/tre/Makefile deleted file mode 100644 index 6618626..0000000 --- a/src/tre/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# makefile for rex_tre library - -include ../defaults.mak - -# === USER SETTINGS === -# =========================================================================== - -# These are default values. -INC = -LIB = -ltre - -# If the default settings don't work for your system, -# try to uncomment and edit the settings below. -#INC = -I/usr/include -#LIB = -lc - -# WARNING: -# Make sure you set both the INC and LIB variables correctly, as -# otherwise you risk using a header file and library that do not -# match, and you may well get segmentation faults (or worse). - -# Target name -REGNAME = tre - -# =========================================================================== -# === END OF USER SETTINGS === - -OBJ = ltre.o ../common.o # ltre_w.o - -include ../common.mak - -# static TRE regexp library binding -ar_tre: $(TRG_AR) - -# dynamic TRE regexp library binding -so_tre: $(TRG_SO) - -# Dependencies -ltre.o: ltre.c ../common.h ../algo.h -ltre_w.o: ltre_w.c ../common.h ../algo.h -../common.o: ../common.c ../common.h - -# (End of Makefile) diff --git a/test/onig_sets.lua b/test/oniguruma_sets.lua index dd226ec..dd226ec 100644 --- a/test/onig_sets.lua +++ b/test/oniguruma_sets.lua diff --git a/test/runtest.lua b/test/runtest.lua index d0d1435..fe32a3d 100644 --- a/test/runtest.lua +++ b/test/runtest.lua @@ -52,12 +52,12 @@ local function test_library (libname, setfile, verbose) end local avail_tests = { - posix = { lib = "rex_posix", "common_sets", "posix_sets" }, - gnu = { lib = "rex_gnu", "common_sets", "emacs_sets", "gnu_sets" }, - onig = { lib = "rex_onig", "common_sets", "onig_sets", }, - pcre = { lib = "rex_pcre", "common_sets", "pcre_sets", "pcre_sets2", }, - spencer = { lib = "rex_spencer", "common_sets", "posix_sets", "spencer_sets" }, - tre = { lib = "rex_tre", "common_sets", "posix_sets", "spencer_sets", --[["tre_sets"]] }, + posix = { lib = "rex_posix", "common_sets", "posix_sets" }, + gnu = { lib = "rex_gnu", "common_sets", "emacs_sets", "gnu_sets" }, + oniguruma = { lib = "rex_onig", "common_sets", "oniguruma_sets", }, + pcre = { lib = "rex_pcre", "common_sets", "pcre_sets", "pcre_sets2", }, + spencer = { lib = "rex_spencer", "common_sets", "posix_sets", "spencer_sets" }, + tre = { lib = "rex_tre", "common_sets", "posix_sets", "spencer_sets", --[["tre_sets"]] }, } do diff --git a/windows/mingw/Makefile b/windows/mingw/Makefile deleted file mode 100644 index e3efb9d..0000000 --- a/windows/mingw/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# Makefile for lrexlib - -MKFILES = \ - rex_gnu.mak \ - rex_onig.mak \ - rex_pcre.mak \ - rex_spencer.mak \ - rex_tre.mak - -LOOP = @for %%d in ($(MKFILES)) do $(MAKE) -f %%d - -all: build test - -build: - $(LOOP) - -test: - $(LOOP) test - -install: - $(LOOP) install - -clean: - del *.o *.def *.dll - -.PHONY: all build test install clean diff --git a/windows/mingw/_mingw.mak b/windows/mingw/_mingw.mak deleted file mode 100644 index 9d56927..0000000 --- a/windows/mingw/_mingw.mak +++ /dev/null @@ -1,64 +0,0 @@ -# Use with GNU Make. - -# User Settings ------------------------------------------------------------ - -# Target Lua version (51 for Lua 5.1; 52 for Lua 5.2). -LUAVERSION = 51 - -# INSTALLPATH : Path to install the built DLL. -# LUADLL : Name of Lua DLL to link to (.dll should be omitted). -# LUAEXE : Name of Lua interpreter. -# LUAINC : Path of Lua include files. - -ifeq ($(LUAVERSION),51) - INSTALLPATH = s:\exe\lib32\lua51 - LUADLL = lua5.1 - LUAEXE = lua.exe - LUAINC = s:\progr\work\system\include\lua51 - MYCFLAGS += -DREX_CREATEGLOBALVAR -else - INSTALLPATH = s:\exe\lib32\lua52 - LUADLL = lua52 - LUAEXE = lua52.exe - LUAINC = s:\progr\work\system\include\lua52 -# MYCFLAGS += -DREX_CREATEGLOBALVAR -endif - -# -------------------------------------------------------------------------- - -BIN = $(PROJECT).dll -BININSTALL = $(INSTALLPATH)\$(BIN) -CC = gcc -CFLAGS = -W -Wall -O2 $(INCS) -DREX_OPENLIB=luaopen_$(PROJECT) \ - -DREX_LIBNAME=\"$(PROJECT)\" $(MYCFLAGS) -DEFFILE = $(PROJECT).def -EXPORTED = luaopen_$(PROJECT) -INCS = -I$(LUAINC) $(MYINCS) -LIBS = -l$(LUADLL) $(MYLIBS) -s -SRCPATH = ..\..\src -TESTPATH = ..\..\test - -.PHONY: all install test clean - -vpath %.c $(SRCPATH);$(SRCPATH)\$(PROJDIR) -vpath %.h $(SRCPATH);$(SRCPATH)\$(PROJDIR) - -all: $(BIN) - -clean: - del $(OBJ) $(BIN) $(DEFFILE) - -install: $(BININSTALL) - -test: - cd $(TESTPATH) && $(LUAEXE) runtest.lua $(TESTNAME) -d$(CURDIR) - -$(BIN): $(OBJ) $(DEFFILE) - $(CC) $(DEFFILE) $(OBJ) $(LIBS) -o $@ -shared - -$(DEFFILE): - echo EXPORTS > $@ - for %%d in ($(EXPORTED)) do echo %%d>> $@ - -$(BININSTALL): $(BIN) - copy /Y $< $@ diff --git a/windows/mingw/docs.mak b/windows/mingw/docs.mak deleted file mode 100644 index 7c813aa..0000000 --- a/windows/mingw/docs.mak +++ /dev/null @@ -1,13 +0,0 @@ -# Documentation Makefile - -APP = rst2html.py -CP = "copy /y" -RM = del -IDX = ..\README.rst - -ALLVAR = APP=$(APP) CP=$(CP) RM=$(RM) IDX=$(IDX) - -.PHONY: all clean - -all clean: - cd ..\..\doc && $(MAKE) $(ALLVAR) $@ diff --git a/windows/mingw/rex_gnu.mak b/windows/mingw/rex_gnu.mak deleted file mode 100644 index fb17a5c..0000000 --- a/windows/mingw/rex_gnu.mak +++ /dev/null @@ -1,18 +0,0 @@ -# Project: rex_gnu - -# User Settings ------------------------------------------------------------ -# path of GNU include files -REGEXINC = s:\progr\work\system\include\gnuregex -# -------------------------------------------------------------------------- - -PROJECT = rex_gnu -MYINCS = -I$(REGEXINC) -MYLIBS = -lregex2 -OBJ = lgnu.o common.o -PROJDIR = gnu -TESTNAME = gnu - -include _mingw.mak - -lgnu.o : common.h algo.h -common.o : common.h diff --git a/windows/mingw/rex_onig.mak b/windows/mingw/rex_onig.mak deleted file mode 100644 index 4e9f5f7..0000000 --- a/windows/mingw/rex_onig.mak +++ /dev/null @@ -1,19 +0,0 @@ -# Project: rex_onig - -# User Settings ------------------------------------------------------------ -# path of Oniguruma include files -REGEXINC = s:\progr\work\system\include -# -------------------------------------------------------------------------- - -PROJECT = rex_onig -MYINCS = -I$(REGEXINC) -MYLIBS = -lonig -Wl,--enable-auto-import -OBJ = lonig.o lonig_f.o common.o -PROJDIR = oniguruma -TESTNAME = onig - -include _mingw.mak - -lonig.o : common.h algo.h -lonig_f.o : common.h -common.o : common.h diff --git a/windows/mingw/rex_pcre.mak b/windows/mingw/rex_pcre.mak deleted file mode 100644 index b6d34ce..0000000 --- a/windows/mingw/rex_pcre.mak +++ /dev/null @@ -1,19 +0,0 @@ -# Project: rex_pcre - -# User Settings ------------------------------------------------------------ -# path of PCRE include files -REGEXINC = s:\progr\work\system\include -# -------------------------------------------------------------------------- - -PROJECT = rex_pcre -MYINCS = -I$(REGEXINC) -MYLIBS = -lpcre -OBJ = lpcre.o lpcre_f.o common.o -PROJDIR = pcre -TESTNAME = pcre - -include _mingw.mak - -lpcre.o : common.h algo.h -lpcre_f.o : common.h -common.o : common.h diff --git a/windows/mingw/rex_spencer.mak b/windows/mingw/rex_spencer.mak deleted file mode 100644 index fb82f0c..0000000 --- a/windows/mingw/rex_spencer.mak +++ /dev/null @@ -1,18 +0,0 @@ -# Project: rex_spencer - -# User Settings ------------------------------------------------------------ -# path of Spencer's include files -REGEXINC = s:\progr\work\system\include\rxspencer -# -------------------------------------------------------------------------- - -PROJECT = rex_spencer -MYINCS = -I$(REGEXINC) -MYLIBS = -lrxspencer -OBJ = lposix.o common.o -PROJDIR = posix -TESTNAME = spencer - -include _mingw.mak - -lposix.o : common.h algo.h -common.o : common.h diff --git a/windows/mingw/rex_tre.mak b/windows/mingw/rex_tre.mak deleted file mode 100644 index de7c5a3..0000000 --- a/windows/mingw/rex_tre.mak +++ /dev/null @@ -1,26 +0,0 @@ -# Project: rex_tre - -# User Settings ------------------------------------------------------------ -# path of TRE include files -REGEXINC = s:\progr\work\system\include -# -------------------------------------------------------------------------- - -PROJECT = rex_tre -MYINCS = -I$(REGEXINC) -MYLIBS = -ltre -OBJ = ltre.o common.o -PROJDIR = tre -TESTNAME = tre - -# Uncomment the following line to add wide-character functions (in alpha state). -# ADDWIDECHARFUNCS = 1 -ifdef ADDWIDECHARFUNCS - OBJ += ltre_w.o - MYCFLAGS += -DREX_ADDWIDECHARFUNCS -endif - -include _mingw.mak - -ltre.o : common.h algo.h -ltre_w.o : common.h algo.h -common.o : common.h |