summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config48
1 files changed, 31 insertions, 17 deletions
diff --git a/config b/config
index af7feb56..fe62a51e 100644
--- a/config
+++ b/config
@@ -1,54 +1,68 @@
# configuration file for making Lua
-# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================
+# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
-# you need an ANSI C compiler. gcc is a popular one.
-CC= gcc
-WARN= -ansi -Wall
-
-# on SGI's, cc is ANSI.
-#CC= cc
-#WARN= -ansi -fullwarn
+# ------------------------------------------------------------------ Lua
# if you need compatibility with version 2.5 or older, uncomment the line below.
#COMPAT= -DLUA_COMPAT2_5
# Lua uses double for numbers. To change this, uncomment one of the lines below.
+#NUMBER= -DLUA_NUM_TYPE=double
#NUMBER= -DLUA_NUM_TYPE=float
#NUMBER= -DLUA_NUM_TYPE=long
# if you want support for pipes, uncomment the following line.
#POPEN= -DPOPEN
+# ------------------------------------------------------------------ C compiler
+
+# you need an ANSI C compiler. gcc is a popular one.
+CC= gcc
+WARN= -ansi -Wall
+
+# on IRIX, cc is a good ANSI compiler.
+#CC= cc
+#WARN= -ansi -fullwarn
+
+# on Solaris, cc is optional. you may have to add -Dsparc if you use -Xc.
+#CC= cc
+#WARN= -Xc # -Dsparc
+
+# ------------------------------------------------------------------ C library
+
# if your C library is not POSIX compliant, comment the following line.
POSIX= -D_POSIX_SOURCE
# if your C library does not have the newer ANSI functions memmove, strerror,
-# and locale support (e.g., in SunOs 4.1.x.), uncomment the following line.
+# and locale support, uncomment the following line. SunOs 4.1.x is one example.
#OLD_ANSI= -DOLD_ANSI
# in SunOs 4.1.x, standard headers in /usr/include are not ANSI,
# so uncomment the following line to avoid prototypes warnings.
#EXTRA_INCS= -I/usr/5include
-# if your system doesn't have (or need) ranlib, change "ranlib" to "true".
-# on some systems, "ar s" does it.
-RANLIB= ranlib
-#RANLIB= ar s
-#RANLIB= true
+# ------------------------------------------------------------------ librarian
# this should work in all unix systems.
AR= ar rcu
-# == END OF USER SETTINGS. DO NOT CHANGE ANYTHING BELOW THIS LINE ============
+# if your system doesn't have (or need) ranlib, use RANLIB=true.
+# on some systems, "ar s" does what ranlib would do.
+RANLIB= ranlib
+#RANLIB= ar s
+#RANLIB= true
+
+# == END OF USER SETTINGS. DO NOT CHANGE ANYTHING BELOW THIS LINE =============
-VERSION= 3.1
+VERSION= 3.2
INC= $(LUA)/include
LIB= $(LUA)/lib
BIN= $(LUA)/bin
INCS= -I$(INC) $(EXTRA_INCS)
-DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRA_DEFS)
+DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRALIB) $(EXTRA_DEFS)
CFLAGS= -O2 $(WARN) $(INCS) $(DEFS)
+