Imported from ../lua-3.2.tar.gz.
[lua.git] / config
blobfe62a51e9f9aa9881a607ed4a718129547336228
1 # configuration file for making Lua
3 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
5 # ------------------------------------------------------------------ Lua
7 # if you need compatibility with version 2.5 or older, uncomment the line below.
8 #COMPAT= -DLUA_COMPAT2_5
10 # Lua uses double for numbers. To change this, uncomment one of the lines below.
11 #NUMBER= -DLUA_NUM_TYPE=double
12 #NUMBER= -DLUA_NUM_TYPE=float
13 #NUMBER= -DLUA_NUM_TYPE=long
15 # if you want support for pipes, uncomment the following line.
16 #POPEN= -DPOPEN
18 # ------------------------------------------------------------------ C compiler
20 # you need an ANSI C compiler. gcc is a popular one.
21 CC= gcc
22 WARN= -ansi -Wall
24 # on IRIX, cc is a good ANSI compiler.
25 #CC= cc
26 #WARN= -ansi -fullwarn
28 # on Solaris, cc is optional. you may have to add -Dsparc if you use -Xc.
29 #CC= cc
30 #WARN= -Xc # -Dsparc
32 # ------------------------------------------------------------------ C library
34 # if your C library is not POSIX compliant, comment the following line.
35 POSIX= -D_POSIX_SOURCE
37 # if your C library does not have the newer ANSI functions memmove, strerror,
38 # and locale support, uncomment the following line. SunOs 4.1.x is one example.
39 #OLD_ANSI= -DOLD_ANSI
41 # in SunOs 4.1.x, standard headers in /usr/include are not ANSI,
42 # so uncomment the following line to avoid prototypes warnings.
43 #EXTRA_INCS=  -I/usr/5include
45 # ------------------------------------------------------------------ librarian
47 # this should work in all unix systems.
48 AR= ar rcu
50 # if your system doesn't have (or need) ranlib, use RANLIB=true.
51 # on some systems, "ar s" does what ranlib would do.
52 RANLIB= ranlib
53 #RANLIB= ar s
54 #RANLIB= true
56 # == END OF USER SETTINGS. DO NOT CHANGE ANYTHING BELOW THIS LINE =============
58 VERSION= 3.2
60 INC= $(LUA)/include
61 LIB= $(LUA)/lib
62 BIN= $(LUA)/bin
64 INCS= -I$(INC) $(EXTRA_INCS)
65 DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRALIB) $(EXTRA_DEFS)
67 CFLAGS= -O2 $(WARN) $(INCS) $(DEFS)