Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ceguilua/src/lua-5.0.3/lua/config @ 1803

Last change on this file since 1803 was 1803, checked in by rgrieder, 16 years ago

added files for lua 5.1.3, lua 5.0.3, CEGUILua-0.6.1 and CEGUILua-0.5.0b

File size: 6.1 KB
RevLine 
[1803]1# configuration file for making Lua 5.0
2# see INSTALL for installation instructions
3
4# These are default values. Skip this section and see the explanations below.
5
6LOADLIB=
7DLLIB=
8NUMBER=
9POPEN=
10TMPNAM=
11DEGREES=
12USERCONF=
13
14# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
15
16# --------------------------------------------------------------- Lua libraries
17
18# Support for dynamically loading C libraries for Lua is a very important
19# feature, which we strongly recommend be enabled. By default, this support is
20# enabled on Windows systems (see below) but disabled on other systems because
21# it relies on system-dependent code that is not part of ANSI C. For more
22# information on dynamic loading, read the comments in src/lib/liolib.c .
23#
24# To enable support for dynamic loading on Unix systems that support the dlfcn
25# interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others),
26# uncomment the next two lines.
27#
28#LOADLIB= -DUSE_DLOPEN=1
29#DLLIB= -ldl
30#
31# In Linux with gcc, you should also uncomment the next definition for
32# MYLDFLAGS, which passes -E (= -export-dynamic) to the linker. This option
33# allows dynamic libraries to link back to the `lua' program, so that they do
34# not need the Lua libraries. (Other systems may have an equivalent facility.)
35#
36#MYLDFLAGS= -Wl,-E
37#
38# On Windows systems. support for dynamic loading is enabled by default.
39# To disable this support, uncomment the next line.
40#
41#LOADLIB= -DUSE_DLL=0
42
43# The Lua IO library (src/lib/liolib.c) has support for pipes using popen and
44# pclose. This support is enabled by default on POSIX systems.
45# If your system is not POSIX but has popen and pclose, define USE_POPEN=1.
46# If you don't want to support pipes, define USE_POPEN=0.
47#
48#POPEN= -DUSE_POPEN=1
49#POPEN= -DUSE_POPEN=0
50#
51# The form below will probably work in (some) Windows systems.
52#
53#POPEN= -DUSE_POPEN=1 -Dpopen=_popen -Dpclose=_pclose
54
55# The Lua OS library (src/lib/liolib.c) exports an interface to the C function
56# tmpnam, which gcc now thinks is `dangerous'. So, support for tmpnam is
57# disabled by default when compiling with gcc.
58# If you still want to use tmpnam, define USE_TMPNAME=1. If you don't want to
59# use tmpnam even if you're not compiling with gcc, define USE_TMPNAME=0.
60#
61#TMPNAM= -DUSE_TMPNAME=1
62#TMPNAM= -DUSE_TMPNAME=0
63
64# The Lua math library (src/lib/lmathlib.c) now operates in radians, unlike
65# previous versions of Lua, which used degrees. To use degrees instead of
66# radians, define USE_DEGREES.
67#
68#DEGREES= -DUSE_DEGREES
69
70# ------------------------------------------------------------------ Lua core
71
72# Lua uses double for numbers. To change this, uncomment and edit the following
73# line, changing USE_XXX to one of USE_DOUBLE, USE_FLOAT, USE_LONG, USE_INT.
74#
75#NUMBER= -DLUA_USER_H='"../etc/luser_number.h"' -DUSE_XXX
76
77# When compiling Lua with gcc on a Pentium machine, using a fast rounding
78# method for the conversion of doubles to ints can give around 20% speed
79# improvement. To use this rounding method, uncomment the following line.
80#NUMBER= -DLUA_USER_H='"../etc/luser_number.h"' -DUSE_FASTROUND
81
82# For partial compatibility with old upvalue syntax, define LUA_COMPATUPSYNTAX.
83# For partial compatibility with old upvalue behavior in C functions, define
84# LUA_COMPATUPVALUES. Add these definitions to MYCFLAGS.
85#
86# -DLUA_COMPATUPSYNTAX -DLUA_COMPATUPVALUES
87
88# ------------------------------------------------------------- Lua interpreter
89
90# The stand-alone Lua interpreter needs the math functions, which are usually
91# in libm.a (-lm).  If your C library already includes the math functions,
92# or if you are using a modified interpreter that does not need them,
93# then comment the following line or add the appropriates libraries.
94#
95EXTRA_LIBS= -lm
96
97# If you want to customize the stand-alone Lua interpreter, uncomment and
98# edit the following two lines; also edit etc/saconfig.c to suit your needs.
99# -DUSE_READLINE adds line editing and history to the interpreter. You need
100# to add -lreadline (and perhaps also -lhistory and -lcurses or -lncurses)
101# to EXTRA_LIBS.
102#
103#USERCONF=-DLUA_USERCONFIG='"$(LUA)/etc/saconfig.c"' -DUSE_READLINE
104#EXTRA_LIBS= -lm -ldl -lreadline # -lhistory -lcurses -lncurses
105
106# ------------------------------------------------------------------ C compiler
107
108# You need an ANSI C compiler. gcc is a popular one. We do not use -ansi in
109# WARN because it disables POSIX features used in the libraries.
110#
111CC= gcc
112WARN= -Wall
113
114# ------------------------------------------------------------------ C options
115
116# Write here any options you may need for your C compiler.
117# If you are using gcc, -O3 will get you a faster but larger code. You can
118# also add -fomit-frame-pointer to get even faster code at the cost of losing
119# debug information. If you only want the shared libraries, you may want to
120# add -fPIC to MYCFLAGS.
121#
122MYCFLAGS= -O2
123#MYCFLAGS= -O3 -fomit-frame-pointer # -fPIC
124
125# Write here any options you may need for your C linker.
126#MYLDFLAGS=
127
128# ------------------------------------------------------------------ librarian
129
130# This should work in all Unix systems.
131#
132AR= ar rcu
133
134# If your system doesn't have (or need) ranlib, use RANLIB=true.
135# On some systems, "ar s" does what ranlib would do.
136#
137RANLIB= ranlib
138#RANLIB= ar s
139#RANLIB= true
140
141# ------------------------------------------------------------------ stripper
142
143# This should work in all Unix systems, but you may want to add options.
144#
145STRIP= strip
146
147# ------------------------------------------------------------------ install
148
149# Locations for "make install". You may need to be root do "make install".
150#
151INSTALL_ROOT= /usr/local
152INSTALL_BIN= $(INSTALL_ROOT)/bin
153INSTALL_INC= $(INSTALL_ROOT)/include
154INSTALL_LIB= $(INSTALL_ROOT)/lib
155INSTALL_MAN= $(INSTALL_ROOT)/man/man1
156
157# You may prefer to use "install" instead of "cp" if you have it.
158# If you use "install", you may also want to change the permissions after -m.
159#
160INSTALL_EXEC= cp
161INSTALL_DATA= cp
162#INSTALL_EXEC= install -m 0755
163#INSTALL_DATA= install -m 0644
164
165# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
166
167V=5.0
168
169BIN= $(LUA)/bin
170INC= $(LUA)/include
171LIB= $(LUA)/lib
172
173INCS= -I$(INC) $(EXTRA_INCS)
174DEFS= $(NUMBER) $(EXTRA_DEFS)
175
176CFLAGS= $(MYCFLAGS) $(WARN) $(INCS) $(DEFS)
177
178# (end of config)
Note: See TracBrowser for help on using the repository browser.