aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/makefile b/makefile
index 62b0347a..1928cf2e 100644
--- a/makefile
+++ b/makefile
@@ -4,34 +4,37 @@
4 4
5# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= 5# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
6 6
7CWARNS= -pedantic -Wextra \ 7CWARNSC=-pedantic -Wextra \
8 -Waggregate-return \ 8 -Waggregate-return \
9 -Wcast-align \ 9 -Wcast-align \
10 -Wdeclaration-after-statement \
11 -Wdisabled-optimization \ 10 -Wdisabled-optimization \
12 -Wmissing-prototypes \
13 -Wnested-externs \
14 -Wpointer-arith \ 11 -Wpointer-arith \
15 -Wshadow \ 12 -Wshadow \
16 -Wsign-compare \ 13 -Wsign-compare \
17 -Wstrict-prototypes \
18 -Wundef \ 14 -Wundef \
19 -Wwrite-strings \ 15 -Wwrite-strings \
20 -Wc++-compat \
21 -Wold-style-definition \
22 -Wredundant-decls \ 16 -Wredundant-decls \
23 -Wdisabled-optimization \ 17 -Wdisabled-optimization \
24-malign-double 18 # the next warnings generate to much noise, so they are disabled
25 # -Wlogical-op \ 19 # -Wlogical-op \
26 # -Wformat=2 \ 20 # -Wformat=2 \
27 # -Wstrict-overflow=5 \ 21 # -Wstrict-overflow=5 \
28 # -Wcast-qual \ 22 # -Wcast-qual \
29 23
24# The next warnings are not valid for C++
25CWARNS= $(CWARNSC) \
26 -Wdeclaration-after-statement \
27 -Wmissing-prototypes \
28 -Wnested-externs \
29 -Wstrict-prototypes \
30 -Wc++-compat \
31 -Wold-style-definition \
32
30 33
31# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS 34# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS
32# -g -DLUA_USER_H='"ltests.h"' 35# -g -DLUA_USER_H='"ltests.h"'
33# -fomit-frame-pointer #-pg -malign-double 36# -fomit-frame-pointer #-pg -malign-double
34# TESTS= -g -DLUA_USER_H='"ltests.h"' 37TESTS= -g -DLUA_USER_H='"ltests.h"'
35 38
36LOCAL = $(TESTS) $(CWARNS) 39LOCAL = $(TESTS) $(CWARNS)
37 40