diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-14 12:08:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-14 12:08:10 -0300 |
| commit | f35ac38e1df7e3577bc7464c8d4d09f97f892a97 (patch) | |
| tree | 1d996f3cd382b77ba69bee4bfbd3c6053c3cfee0 /makefile | |
| parent | 058279d5487bd4216e4b57af3e2d014f66c5043f (diff) | |
| download | lua-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-- | makefile | 21 |
1 files changed, 9 insertions, 12 deletions
| @@ -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 |
| 37 | TESTS= -g -DLUA_USER_H='"ltests.h"' | 38 | TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0 |
| 38 | 39 | ||
| 39 | LOCAL = $(TESTS) $(CWARNS) | 40 | LOCAL = $(TESTS) $(CWARNS) |
| 40 | 41 | ||
| 41 | MYCFLAGS= $(LOCAL) | 42 | |
| 42 | MYLDFLAGS= | 43 | # enable Linux goodies |
| 43 | MYLIBS= | 44 | MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -g |
| 45 | MYLDFLAGS= -Wl,-E -g | ||
| 46 | MYLIBS= -ldl -lreadline -lhistory -lncurses | ||
| 44 | 47 | ||
| 45 | 48 | ||
| 46 | CC= gcc | 49 | CC= gcc |
| @@ -52,12 +55,6 @@ RANLIB= ranlib | |||
| 52 | RM= rm -f | 55 | RM= rm -f |
| 53 | 56 | ||
| 54 | 57 | ||
| 55 | # enable Linux goodies | ||
| 56 | MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX | ||
| 57 | MYLDFLAGS= -Wl,-E | ||
| 58 | MYLIBS= -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 |
| 166 | lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h | 163 | lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h |
| 167 | ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \ | 164 | ltable.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 |
| 169 | ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h | 166 | ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h |
| 170 | ltests.o: ltests.c lua.h luaconf.h lapi.h llimits.h lstate.h lobject.h \ | 167 | ltests.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 \ |
