From f35ac38e1df7e3577bc7464c8d4d09f97f892a97 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 14 May 2010 12:08:10 -0300 Subject: [PATCH] updated depenency lists + eliminated duplication of definitions for MYCFLAGS, MYLDFLAGS, and MYLIBS. --- makefile | 21 +++++++++------------ 1 file 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 \