diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-07-03 13:02:41 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-07-03 13:02:41 -0300 |
| commit | 0280407fc54f9b6225139c5ac27326f98f0cf043 (patch) | |
| tree | 74a7c1f7cde9120d67e17ce40602b4cfd7498d80 /makefile | |
| parent | ae809e9fd132ab867741a6a777450f9bc0d49be4 (diff) | |
| download | lua-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-- | makefile | 19 |
1 files changed, 10 insertions, 9 deletions
| @@ -37,10 +37,15 @@ CWARNSC= -Wdeclaration-after-statement \ | |||
| 37 | 37 | ||
| 38 | CWARNS= $(CWARNSCPP) $(CWARNSC) | 38 | CWARNS= $(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 \ | |||
| 81 | LUA_T= lua | 86 | LUA_T= lua |
| 82 | LUA_O= lua.o | 87 | LUA_O= lua.o |
| 83 | 88 | ||
| 84 | # LUAC_T= luac | ||
| 85 | # LUAC_O= luac.o print.o | ||
| 86 | 89 | ||
| 87 | ALL_T= $(CORE_T) $(LUA_T) $(LUAC_T) | 90 | ALL_T= $(CORE_T) $(LUA_T) |
| 88 | ALL_O= $(CORE_O) $(LUA_O) $(LUAC_O) $(AUX_O) $(LIB_O) | 91 | ALL_O= $(CORE_O) $(LUA_O) $(AUX_O) $(LIB_O) |
| 89 | ALL_A= $(CORE_T) | 92 | ALL_A= $(CORE_T) |
| 90 | 93 | ||
| 91 | all: $(ALL_T) | 94 | all: $(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 | ||
| 108 | llex.o: | 109 | llex.o: |
| 109 | $(CC) $(CFLAGS) -Os -c llex.c | 110 | $(CC) $(CFLAGS) -Os -c llex.c |
