eris: add 'build.bat' and update makefile'

This commit is contained in:
2021-02-28 13:33:45 -05:00
parent 51d41d11bb
commit 21d6203d27
3 changed files with 21 additions and 2 deletions

1
luprex/.gitignore vendored
View File

@@ -2,6 +2,7 @@
*.o
*.dll
*.exe
*.a
core/inc/**
core/lib/**
core/obj/**

View File

@@ -0,0 +1,12 @@
cd src
make "CFLAGS=-g -DLUA_USE_APICHECK -DLUA_COMPAT_ALL" clean mingw
cp liblua.a ../../core/lib/liblua-dbg.a
make "CFLAGS=-O2 -DLUA_COMPAT_ALL" clean mingw
cp liblua.a ../../core/lib/liblua-opt.a
cp lua.h ../../core/inc/
cp luaconf.h ../../core/inc/
cd ..

View File

@@ -25,7 +25,7 @@ MYOBJS=eris.o
# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris win-gcc-static
LUA_A= liblua.a
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
@@ -126,13 +126,19 @@ macosx:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC=cc
mingw:
$(MAKE) "LUA_A=lua52.dll" "LUA_T=lua.exe" \
$(MAKE) "LUA_T=lua.exe" \
"AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
"SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
$(MAKE) "LUAC_T=luac.exe" luac.exe
$(MAKE) "TESTP_T=../test/persist.exe" ../test/persist.exe
$(MAKE) "TESTUP_T=../test/unpersist.exe" ../test/unpersist.exe
win-gcc-static:
$(MAKE) "LUA_T=lua.exe" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
$(MAKE) "LUAC_T=luac.exe" luac.exe
$(MAKE) "TESTP_T=../test/persist.exe" ../test/persist.exe
$(MAKE) "TESTUP_T=../test/unpersist.exe" ../test/unpersist.exe
posix:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"