summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1998-07-11 12:00:00 +0000
committerrepogen <>1998-07-11 12:00:00 +0000
commit377347776f1f3d820f92151f70bec667f96d5e6b (patch)
treecdb3ba26158df33547dfe765547177afcee119d1 /INSTALL
parent4f8c5d0f284e1f4da717aea5008915f185cd2e05 (diff)
downloadlua-github-3.1.tar.gz
Lua 3.13.1
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL32
1 files changed, 19 insertions, 13 deletions
diff --git a/INSTALL b/INSTALL
index 5a349d7a..95a10dd4 100644
--- a/INSTALL
+++ b/INSTALL
@@ -2,20 +2,21 @@
Building Lua on a Unix system should be very easy:
- 1. Edit "config" to suit your platform, if at all necessary
- 2. Then, type "make"
+ 1. Edit "config" to suit your platform, if at all necessary.
+ 2. Then, type "make".
See below for instructions for Windows and Macintosh.
* What you get
- If make succeeds, you get:
- * an interpreter and a compiler in ./bin;
+ If "make" succeeds, you get:
+ * an interpreter in ./bin/lua and a compiler in ./bin/luac;
* libraries in ./lib;
* include files in ./include.
These are the only directories you need for development.
- There is a reference manual in html in ./doc, and sample code in ./test.
+ There is a reference manual in html in ./doc, some sample code in ./test,
+ and some useful stuff in ./etc.
You don't need these directories for development.
* If you have problems (and solutions!)
@@ -26,28 +27,33 @@
* Shared libraries
If you are running SunOs 4.x, type the following after "make" succeeds:
- ld -o lib/liblua.so.3.0 src/*.o
- ld -o lib/liblualib.so.3.0 clients/lib/*.o
+ ld -o lib/liblua.so.3.1 src/*.o
+ ld -o lib/liblualib.so.3.1 src/lib/*.o
+
+ If you want the interpreter to use shared libraries, then do:
+ rm bin/lua
+ cd src/lua; make
For AIX, the OpenGL clone Mesa includes a script for making shared libraries.
For other systems, please tell us how!
* Installation on Windows or Macintosh
-
+
The instructions for building Lua on a Mac or Windows machine depend on
the particular compiler you are using.
The simplest way is to create a folder with all .c and .h files.
Then create projects for the basic library, the standard library,
the interpreter and the compiler, as follows:
- basic lib: auxlib.c fallback.c func.c hash.c inout.c lex.c luamem.c
- opcode.c parser.c table.c tree.c undump.c zio.c
+ basic lib: lapi.c lauxlib.c lbuffer.c lbuiltin.c ldo.c lfunc.c lgc.c
+ llex.c lmem.c lobject.c lparser.c lstate.c lstring.c ltable.c
+ ltm.c lundump.c lvm.c lzio.c
- standard lib: iolib.c mathlib.c strlib.c
+ standard lib: liolib.c lmathlib.c lstrlib.c
interpreter: basic lib, standard lib, lua.c
- compiler: basic lib, dump.c luac.c print.c
+ compiler: basic lib, dump.c luac.c print.c stubs.c opcode.c opt.c
Of course, to use Lua as a library, you'll have to know how to create
- libraries and use with your compiler.
+ and use libraries with your compiler.