aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/makefile b/makefile
index 91064e9a..55aacf9a 100644
--- a/makefile
+++ b/makefile
@@ -4,11 +4,12 @@
4 4
5# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= 5# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
6 6
7CWARNSC=-pedantic -Wextra \ 7# Warnings valid for both C and C++
8CWARNSCPP=-pedantic -Wno-long-long \
9 -Wall -Wextra \
8 -Waggregate-return \ 10 -Waggregate-return \
9 -Wcast-align \ 11 -Wcast-align \
10 -Wdisabled-optimization \ 12 -Wdisabled-optimization \
11 -Wpointer-arith \
12 -Wshadow \ 13 -Wshadow \
13 -Wsign-compare \ 14 -Wsign-compare \
14 -Wundef \ 15 -Wundef \
@@ -24,15 +25,17 @@ CWARNSC=-pedantic -Wextra \
24 # -Wformat=2 \ 25 # -Wformat=2 \
25 # -Wcast-qual \ 26 # -Wcast-qual \
26 27
27# The next warnings are not valid for C++ 28# The next warnings are neither valid nor needed for C++
28CWARNS= $(CWARNSC) \ 29CWARNSC= -Wdeclaration-after-statement \
29 -Wdeclaration-after-statement \
30 -Wmissing-prototypes \ 30 -Wmissing-prototypes \
31 -Wnested-externs \ 31 -Wnested-externs \
32 -Wstrict-prototypes \ 32 -Wstrict-prototypes \
33 -Wc++-compat \ 33 -Wc++-compat \
34 -Wold-style-declaration \
34 -Wold-style-definition \ 35 -Wold-style-definition \
35 36
37CWARNS= $(CWARNSCPP) $(CWARNSC)
38
36 39
37# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' 40# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
38# -g -DLUA_USER_H='"ltests.h"' 41# -g -DLUA_USER_H='"ltests.h"'
@@ -174,8 +177,8 @@ ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
174ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \ 177ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \
175 ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \ 178 ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \
176 lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h lualib.h 179 lctype.h ldebug.h ldo.h lfunc.h lstring.h lgc.h ltable.h lualib.h
177ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \ 180ltm.o: ltm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
178 lmem.h lstring.h lgc.h ltable.h 181 lzio.h lmem.h ldo.h lstring.h lgc.h ltable.h lvm.h
179lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h 182lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h
180lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \ 183lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \
181 llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h 184 llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h