aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-03 13:02:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-03 13:02:41 -0300
commit0280407fc54f9b6225139c5ac27326f98f0cf043 (patch)
tree74a7c1f7cde9120d67e17ce40602b4cfd7498d80 /makefile
parentae809e9fd132ab867741a6a777450f9bc0d49be4 (diff)
downloadlua-0280407fc54f9b6225139c5ac27326f98f0cf043.tar.gz
lua-0280407fc54f9b6225139c5ac27326f98f0cf043.tar.bz2
lua-0280407fc54f9b6225139c5ac27326f98f0cf043.zip
Details
Comments in makefile and function 'l_str2d'.
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/makefile b/makefile
index 9be23925..baa6e673 100644
--- a/makefile
+++ b/makefile
@@ -37,10 +37,15 @@ CWARNSC= -Wdeclaration-after-statement \
37 37
38CWARNS= $(CWARNSCPP) $(CWARNSC) 38CWARNS= $(CWARNSCPP) $(CWARNSC)
39 39
40# Some useful compiler options for internal tests:
41# -DHARDSTACKTESTS forces a reallocation of the stack at every point where
42# the stack can be reallocated.
43# -DHARDMEMTESTS forces an emergency collection at every single allocation.
44# -DEXTERNMEMCHECK removes internal consistency checking of blocks being
45# deallocated (useful when an external tool like valgrind does the check).
46# -DMAXINDEXRK=k limits range of constants in RK instruction operands.
47# -DLUA_COMPAT_5_3
40 48
41# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
42# -DMAXINDEXRK=1 -DLUA_COMPAT_5_3
43# -g -DLUA_USER_H='"ltests.h"'
44# -pg -malign-double 49# -pg -malign-double
45# -DLUA_USE_CTYPE -DLUA_USE_APICHECK 50# -DLUA_USE_CTYPE -DLUA_USE_APICHECK
46# ('-ftrapv' for runtime checks of integer overflows) 51# ('-ftrapv' for runtime checks of integer overflows)
@@ -81,11 +86,9 @@ LIB_O= lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o \
81LUA_T= lua 86LUA_T= lua
82LUA_O= lua.o 87LUA_O= lua.o
83 88
84# LUAC_T= luac
85# LUAC_O= luac.o print.o
86 89
87ALL_T= $(CORE_T) $(LUA_T) $(LUAC_T) 90ALL_T= $(CORE_T) $(LUA_T)
88ALL_O= $(CORE_O) $(LUA_O) $(LUAC_O) $(AUX_O) $(LIB_O) 91ALL_O= $(CORE_O) $(LUA_O) $(AUX_O) $(LIB_O)
89ALL_A= $(CORE_T) 92ALL_A= $(CORE_T)
90 93
91all: $(ALL_T) 94all: $(ALL_T)
@@ -102,8 +105,6 @@ $(CORE_T): $(CORE_O) $(AUX_O) $(LIB_O)
102$(LUA_T): $(LUA_O) $(CORE_T) 105$(LUA_T): $(LUA_O) $(CORE_T)
103 $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(CORE_T) $(LIBS) $(MYLIBS) $(DL) 106 $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(CORE_T) $(LIBS) $(MYLIBS) $(DL)
104 107
105$(LUAC_T): $(LUAC_O) $(CORE_T)
106 $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(CORE_T) $(LIBS) $(MYLIBS)
107 108
108llex.o: 109llex.o:
109 $(CC) $(CFLAGS) -Os -c llex.c 110 $(CC) $(CFLAGS) -Os -c llex.c