Skip to content

Instantly share code, notes, and snippets.

@wernsey
Created June 13, 2019 08:41
Show Gist options
  • Save wernsey/3b16bb5ec0239d817b37ee2b86b19534 to your computer and use it in GitHub Desktop.
Save wernsey/3b16bb5ec0239d817b37ee2b86b19534 to your computer and use it in GitHub Desktop.
Compile all the lua source in one go.
/*
Compile all the lua source in one go.
Put this in the `lua-5.3.5/src` directory, then compile like so:
$ cc lua.c luaone.c
$ cc luac.c luaone.c
Or compile to an object file like so:
$ cc -c luaone.c
*/
#include "lapi.c"
#include "lauxlib.c"
#include "lbaselib.c"
#include "lbitlib.c"
#include "lcode.c"
#include "lcorolib.c"
#include "lctype.c"
#include "ldblib.c"
#include "ldebug.c"
#include "ldo.c"
#include "ldump.c"
#include "lundump.c"
#include "lfunc.c"
#include "lgc.c"
#include "linit.c"
#include "liolib.c"
#include "llex.c"
#include "lmathlib.c"
#include "lmem.c"
#include "loadlib.c"
#include "lobject.c"
#include "lopcodes.c"
#include "loslib.c"
#include "lparser.c"
#include "lstate.c"
#include "lstring.c"
#include "lstrlib.c"
#include "ltable.c"
#include "ltablib.c"
#include "ltm.c"
#include "lutf8lib.c"
#include "lvm.c"
#include "lzio.c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment