Skip to content

Build Instructions

Cody Tilkins edited this page Feb 24, 2021 · 1 revision

Table of Contents

Short Version

  1. run `prereqs download`
  2. run `build driver lua-x.x.x` or `build driver luajit`
  3. run `build package lua-x-x-x` or `build driver luajit` for each lua version needed
  4. run `build install dir` where dir already exists
See --help dialogs for additional information about build and prereqs.

This is a self contained package, so deleting the directory will also delete the program. Keep in mind that on Linux to run this program, you need to configure `LD_LIBRARY_PATH` or cache your installation directory with `ldconfig` or friends. This is a Linux dependent thing I will eventually fix, sorry.

Makefile

  1. configure PLAT to point to: Windows, MSVS, Linux
  2. configure LUA_VER to point to: lua-x.x.x, luajit
  3. supply target driver to build the driver with a default package
  4. supply target package for each lua version needed
Note: Do not specify multiple targets at once, as it is pointless.

GCC / MinGW64

make PLAT=Windows LUA_VER=lua-x.x.x driver
make PLAT=Windows LUA_VER=lua-x.x.x package
...
make PLAT=Windows "PREFIX=C:\install_dir\" install

Visual Studio

make PLAT=MSVS LUA_VER=lua-x.x.x driver
make PLAT=MSVS LUA_VER=lua-x.x.x package
...
make PLAT=MSVS "PREFIX=C:\install_dir\" install

Linux

make PLAT=Linux LUA_VER=lua-x.x.x driver
make PLAT=Linux LUA_VER=lua-x.x.x package
...
make PLAT=Linux "PREFIX=/opt/install_dir/" install

Windows

GCC / MinGW64

prereqs.bat download
build.bat driver lua-x.x.x
build.bat package lua-x.x.x
...
build.bat install "C:\install_dir\"

Visual Studio

prereqs.bat download
build.msvs.bat driver lua-x.x.x
build.msvs.bat package lua-x.x.x
...
build.msvs.bat install "C:\install_dir\"

Linux

./prereqs.sh download
./build.sh driver lua-x.x.x
./build.sh package lua-x.x.x
...
./build.sh install "/opt/install_dir"