aboutsummaryrefslogtreecommitdiff
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-f35ac38e1df7e3577bc7464c8d4d09f97f892a97.tar.gz
lua-f35ac38e1df7e3577bc7464c8d4d09f97f892a97.tar.bz2
lua-f35ac38e1df7e3577bc7464c8d4d09f97f892a97.zip
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 \
15 -Wwrite-strings \ 15 -Wwrite-strings \
16 -Wredundant-decls \ 16 -Wredundant-decls \
17 -Wdisabled-optimization \ 17 -Wdisabled-optimization \
18 -Wstrict-aliasing \
18 # the next warnings generate to much noise, so they are disabled 19 # the next warnings generate to much noise, so they are disabled
19 # -Wlogical-op \ 20 # -Wlogical-op \
20 # -Wformat=2 \ 21 # -Wformat=2 \
@@ -31,16 +32,18 @@ CWARNS= $(CWARNSC) \
31 -Wold-style-definition \ 32 -Wold-style-definition \
32 33
33 34
34# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS 35# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
35# -g -DLUA_USER_H='"ltests.h"' 36# -g -DLUA_USER_H='"ltests.h"'
36# -fomit-frame-pointer #-pg -malign-double 37# -fomit-frame-pointer #-pg -malign-double
37TESTS= -g -DLUA_USER_H='"ltests.h"' 38TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0
38 39
39LOCAL = $(TESTS) $(CWARNS) 40LOCAL = $(TESTS) $(CWARNS)
40 41
41MYCFLAGS= $(LOCAL) 42
42MYLDFLAGS= 43# enable Linux goodies
43MYLIBS= 44MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -g
45MYLDFLAGS= -Wl,-E -g
46MYLIBS= -ldl -lreadline -lhistory -lncurses
44 47
45 48
46CC= gcc 49CC= gcc
@@ -52,12 +55,6 @@ RANLIB= ranlib
52RM= rm -f 55RM= rm -f
53 56
54 57
55# enable Linux goodies
56MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX
57MYLDFLAGS= -Wl,-E
58MYLIBS= -ldl -lreadline -lhistory -lncurses
59
60
61 58
62# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= 59# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
63 60
@@ -165,7 +162,7 @@ lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h \
165 ltm.h lzio.h lstring.h lgc.h 162 ltm.h lzio.h lstring.h lgc.h
166lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h 163lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h
167ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \ 164ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
168 ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h 165 ltm.h lzio.h lmem.h ldo.h lgc.h lstring.h ltable.h
169ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h 166ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
170ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \ 167ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \
171 ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \ 168 ltm.h lzio.h lmem.h lauxlib.h lcode.h llex.h lopcodes.h lparser.h \