eris: add 'build.bat' and update makefile'
This commit is contained in:
1
luprex/.gitignore
vendored
1
luprex/.gitignore
vendored
@@ -2,6 +2,7 @@
|
||||
*.o
|
||||
*.dll
|
||||
*.exe
|
||||
*.a
|
||||
core/inc/**
|
||||
core/lib/**
|
||||
core/obj/**
|
||||
|
||||
12
luprex/eris-master/build.bat
Normal file
12
luprex/eris-master/build.bat
Normal 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 ..
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user