summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-14 12:08:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-14 12:08:10 -0300
commitf35ac38e1df7e3577bc7464c8d4d09f97f892a97 (patch)
tree1d996f3cd382b77ba69bee4bfbd3c6053c3cfee0 /makefile
parent058279d5487bd4216e4b57af3e2d014f66c5043f (diff)
downloadlua-github-f35ac38e1df7e3577bc7464c8d4d09f97f892a97.tar.gz
updated depenency lists + eliminated duplication of definitions
for MYCFLAGS, MYLDFLAGS, and MYLIBS.
Diffstat (limited to 'makefile')
-rw-r--r--makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/makefile b/makefile
index 1928cf2e..00fe2b2e 100644
--- a/makefile
+++ b/makefile
@@ -15,6 +15,7 @@ CWARNSC=-pedantic -Wextra \
-Wwrite-strings \
-Wredundant-decls \
-Wdisabled-optimization \
+ -Wstrict-aliasing \
# the next warnings generate to much noise, so they are disabled
# -Wlogical-op \
# -Wformat=2 \
@@ -31,16 +32,18 @@ CWARNS= $(CWARNSC) \
-Wold-style-definition \
-# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS
+# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
# -g -DLUA_USER_H='"ltests.h"'
# -fomit-frame-pointer #-pg -malign-double
-TESTS= -g -DLUA_USER_H='"ltests.h"'
+TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0
LOCAL = $(TESTS) $(CWARNS)
-MYCFLAGS= $(LOCAL)
-MYLDFLAGS=
-MYLIBS=
+
+# enable Linux goodies
+MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -g
+MYLDFLAGS= -Wl,-E -g
+MYLIBS= -ldl -lreadline -lhistory -lncurses
CC= gcc
@@ -52,12 +55,6 @@ RANLIB= ranlib
RM= rm -f
-# enable Linux goodies
-MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX
-MYLDFLAGS= -Wl,-E
-MYLIBS= -ldl -lreadline -lhistory -lncurses
-
-
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
@@ -165,7 +162,7 @@ lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h \
ltm.h lzio.h lstring.h lgc.h
lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h
ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
- ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h
+ ltm.h lzio.h lmem.h ldo.h lgc.h lstring.h ltable.h
ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \
ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \