diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-17 13:56:22 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-17 13:56:22 -0200 |
commit | af6d9f31165a13c34c0601f37ca5a67c365d1d01 (patch) | |
tree | b38572c639b77113a06fc8546378a7ca519c919d /makefile | |
parent | 2258f3133b27a6a3db703644311e0a59b6c7b0f6 (diff) | |
download | lua-af6d9f31165a13c34c0601f37ca5a67c365d1d01.tar.gz lua-af6d9f31165a13c34c0601f37ca5a67c365d1d01.tar.bz2 lua-af6d9f31165a13c34c0601f37ca5a67c365d1d01.zip |
Details
A few details in the makefile and in the manual. (In particular,
it updates the dependency lists in the makefile.)
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -14,10 +14,11 @@ CWARNSCPP= \ | |||
14 | -Wredundant-decls \ | 14 | -Wredundant-decls \ |
15 | -Wdisabled-optimization \ | 15 | -Wdisabled-optimization \ |
16 | -Wdouble-promotion \ | 16 | -Wdouble-promotion \ |
17 | -Wstrict-aliasing=3 \ | 17 | #-Wno-aggressive-loop-optimizations \ |
18 | -Wno-aggressive-loop-optimizations \ | 18 | #-Wlogical-op \ |
19 | -Wlogical-op \ | 19 | #-Wfatal-errors \ |
20 | -Werror \ | 20 | #-Wstrict-aliasing=3 \ |
21 | # -Werror \ | ||
21 | # -pedantic # warns if we use jump tables \ | 22 | # -pedantic # warns if we use jump tables \ |
22 | # the next warnings generate too much noise, so they are disabled | 23 | # the next warnings generate too much noise, so they are disabled |
23 | # -Wconversion -Wno-sign-conversion \ | 24 | # -Wconversion -Wno-sign-conversion \ |
@@ -39,6 +40,7 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) | |||
39 | 40 | ||
40 | 41 | ||
41 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' | 42 | # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' |
43 | # -DMAXINDEXRK=1 | ||
42 | # -g -DLUA_USER_H='"ltests.h"' | 44 | # -g -DLUA_USER_H='"ltests.h"' |
43 | # -pg -malign-double | 45 | # -pg -malign-double |
44 | # -DLUA_USE_CTYPE -DLUA_USE_APICHECK | 46 | # -DLUA_USE_CTYPE -DLUA_USE_APICHECK |
@@ -50,7 +52,6 @@ TESTS= -DLUA_USER_H='"ltests.h"' -O0 | |||
50 | # LOCAL = $(TESTS) $(CWARNS) -g | 52 | # LOCAL = $(TESTS) $(CWARNS) -g |
51 | 53 | ||
52 | 54 | ||
53 | |||
54 | # enable Linux goodies | 55 | # enable Linux goodies |
55 | MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE | 56 | MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE |
56 | MYLDFLAGS= $(LOCAL) -Wl,-E | 57 | MYLDFLAGS= $(LOCAL) -Wl,-E |
@@ -58,7 +59,7 @@ MYLIBS= -ldl -lreadline | |||
58 | 59 | ||
59 | 60 | ||
60 | CC= gcc | 61 | CC= gcc |
61 | CFLAGS= -Wall -O2 $(MYCFLAGS) -Wfatal-errors -fno-stack-protector -fno-common | 62 | CFLAGS= -Wall -O2 $(MYCFLAGS) -fno-stack-protector -fno-common -march=native |
62 | AR= ar rc | 63 | AR= ar rc |
63 | RANLIB= ranlib | 64 | RANLIB= ranlib |
64 | RM= rm -f | 65 | RM= rm -f |
@@ -122,7 +123,7 @@ echo: | |||
122 | @echo "MYLIBS = $(MYLIBS)" | 123 | @echo "MYLIBS = $(MYLIBS)" |
123 | @echo "DL = $(DL)" | 124 | @echo "DL = $(DL)" |
124 | 125 | ||
125 | $(ALL_O): makefile | 126 | $(ALL_O): makefile ltests.h |
126 | 127 | ||
127 | # DO NOT EDIT | 128 | # DO NOT EDIT |
128 | # automatically made with 'gcc -MM l*.c' | 129 | # automatically made with 'gcc -MM l*.c' |
@@ -146,8 +147,8 @@ ldo.o: ldo.c lprefix.h lua.h luaconf.h lapi.h llimits.h lstate.h \ | |||
146 | lparser.h lstring.h ltable.h lundump.h lvm.h | 147 | lparser.h lstring.h ltable.h lundump.h lvm.h |
147 | ldump.o: ldump.c lprefix.h lua.h luaconf.h lobject.h llimits.h lstate.h \ | 148 | ldump.o: ldump.c lprefix.h lua.h luaconf.h lobject.h llimits.h lstate.h \ |
148 | ltm.h lzio.h lmem.h lundump.h | 149 | ltm.h lzio.h lmem.h lundump.h |
149 | lfunc.o: lfunc.c lprefix.h lua.h luaconf.h lfunc.h lobject.h llimits.h \ | 150 | lfunc.o: lfunc.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ |
150 | lgc.h lstate.h ltm.h lzio.h lmem.h | 151 | llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h |
151 | lgc.o: lgc.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ | 152 | lgc.o: lgc.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ |
152 | llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h | 153 | llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h |
153 | linit.o: linit.c lprefix.h lua.h luaconf.h lualib.h lauxlib.h | 154 | linit.o: linit.c lprefix.h lua.h luaconf.h lualib.h lauxlib.h |
@@ -178,8 +179,8 @@ ltable.o: ltable.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ | |||
178 | ltablib.o: ltablib.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h | 179 | ltablib.o: ltablib.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h |
179 | ltests.o: ltests.c lprefix.h lua.h luaconf.h lapi.h llimits.h lstate.h \ | 180 | ltests.o: ltests.c lprefix.h lua.h luaconf.h lapi.h llimits.h lstate.h \ |
180 | lobject.h ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h \ | 181 | lobject.h ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h \ |
181 | lparser.h lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h \ | 182 | lparser.h lctype.h ldebug.h ldo.h lfunc.h lopnames.h lstring.h lgc.h \ |
182 | lualib.h | 183 | ltable.h lualib.h |
183 | ltm.o: ltm.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ | 184 | ltm.o: ltm.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ |
184 | llimits.h ltm.h lzio.h lmem.h ldo.h lgc.h lstring.h ltable.h lvm.h | 185 | llimits.h ltm.h lzio.h lmem.h ldo.h lgc.h lstring.h ltable.h lvm.h |
185 | lua.o: lua.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h | 186 | lua.o: lua.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h |