diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-14 19:49:33 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-14 19:49:33 -0200 |
commit | 63e2d9212348bf75e5b24630f97213762e4f9bc4 (patch) | |
tree | e552433074ff3a6078cc7543b8a13ca71a382bee | |
parent | e966dd93be46f34bb335f09f38b4ab1777ace5f5 (diff) | |
download | lua-63e2d9212348bf75e5b24630f97213762e4f9bc4.tar.gz lua-63e2d9212348bf75e5b24630f97213762e4f9bc4.tar.bz2 lua-63e2d9212348bf75e5b24630f97213762e4f9bc4.zip |
no more -DOLD_ANSI option + details
-rw-r--r-- | makefile | 23 |
1 files changed, 9 insertions, 14 deletions
@@ -1,5 +1,5 @@ | |||
1 | # | 1 | # |
2 | ## $Id: makefile,v 1.32 2001/07/24 22:40:08 roberto Exp roberto $ | 2 | ## $Id: makefile,v 1.32 2001/07/24 22:40:08 roberto Exp $ |
3 | ## Makefile | 3 | ## Makefile |
4 | ## See Copyright Notice in lua.h | 4 | ## See Copyright Notice in lua.h |
5 | # | 5 | # |
@@ -11,35 +11,31 @@ | |||
11 | # | 11 | # |
12 | # define (undefine) _POSIX_SOURCE if your system is (not) POSIX compliant | 12 | # define (undefine) _POSIX_SOURCE if your system is (not) POSIX compliant |
13 | # | 13 | # |
14 | # define (undefine) OLD_ANSI if your system does NOT have some new ANSI | ||
15 | # facilities (e.g. strerror, locale.h, memmove). SunOS does not comply; | ||
16 | # so, add "-DOLD_ANSI" on SunOS | ||
17 | # | ||
18 | # define LUA_NUM_TYPE if you need numbers to be different from double | 14 | # define LUA_NUM_TYPE if you need numbers to be different from double |
19 | # (for instance, -DLUA_NUM_TYPE=float) | 15 | # (for instance, -DLUA_NUM_TYPE=float) |
20 | # you may need to adapat the code, too. | 16 | # you may need to adapat the code, too. |
21 | # | 17 | |
22 | 18 | ||
23 | #EXTRA_H=-DLUA_USER_H='"ltests.h"' | 19 | #EXTRA_H=-DLUA_USER_H='"ltests.h"' |
24 | 20 | ||
25 | CONFIG = -DPOPEN -D_POSIX_SOURCE $(EXTRA_H) | 21 | CONFIG = -D_POSIX_SOURCE $(EXTRA_H) |
26 | #CONFIG = -DOLD_ANSI | ||
27 | 22 | ||
28 | 23 | ||
29 | # Compilation parameters | 24 | # Compilation parameters |
30 | CC = gcc | 25 | CC = g++ |
31 | CWARNS = -Wall -W -pedantic \ | 26 | CWARNS = -Wall -pedantic \ |
32 | -Waggregate-return \ | 27 | -Waggregate-return \ |
33 | -Wcast-align \ | 28 | -Wcast-align \ |
34 | -Wmissing-prototypes \ | 29 | -Wmissing-prototypes \ |
30 | -Wstrict-prototypes \ | ||
35 | -Wnested-externs \ | 31 | -Wnested-externs \ |
36 | -Wpointer-arith \ | 32 | -Wpointer-arith \ |
37 | -Wshadow \ | 33 | -Wshadow \ |
38 | -Wwrite-strings \ | 34 | -Wwrite-strings \ |
35 | # -Wtraditional \ | ||
39 | # -Wcast-qual | 36 | # -Wcast-qual |
40 | # -Wtraditional | ||
41 | 37 | ||
42 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O3 -fomit-frame-pointer | 38 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 #-fomit-frame-pointer |
43 | 39 | ||
44 | 40 | ||
45 | # To make early versions | 41 | # To make early versions |
@@ -75,8 +71,8 @@ LUAOBJS = \ | |||
75 | LIBOBJS = \ | 71 | LIBOBJS = \ |
76 | lauxlib.o \ | 72 | lauxlib.o \ |
77 | lbaselib.o \ | 73 | lbaselib.o \ |
78 | liolib.o \ | ||
79 | lmathlib.o \ | 74 | lmathlib.o \ |
75 | liolib.o \ | ||
80 | lstrlib.o \ | 76 | lstrlib.o \ |
81 | ldblib.o | 77 | ldblib.o |
82 | 78 | ||
@@ -145,7 +141,6 @@ lstring.o: lstring.c lua.h lmem.h llimits.h lobject.h lstate.h ltm.h \ | |||
145 | lstrlib.o: lstrlib.c lua.h lauxlib.h lualib.h | 141 | lstrlib.o: lstrlib.c lua.h lauxlib.h lualib.h |
146 | ltable.o: ltable.c lua.h ldo.h lobject.h llimits.h lstate.h ltm.h \ | 142 | ltable.o: ltable.c lua.h ldo.h lobject.h llimits.h lstate.h ltm.h \ |
147 | luadebug.h lmem.h ltable.h | 143 | luadebug.h lmem.h ltable.h |
148 | ltags.o: ltags.c | ||
149 | ltests.o: ltests.c lua.h lapi.h lobject.h llimits.h lauxlib.h lcode.h \ | 144 | ltests.o: ltests.c lua.h lapi.h lobject.h llimits.h lauxlib.h lcode.h \ |
150 | llex.h lzio.h lopcodes.h lparser.h ltable.h ldebug.h lstate.h ltm.h \ | 145 | llex.h lzio.h lopcodes.h lparser.h ltable.h ldebug.h lstate.h ltm.h \ |
151 | luadebug.h ldo.h lfunc.h lmem.h lstring.h lualib.h | 146 | luadebug.h ldo.h lfunc.h lmem.h lstring.h lualib.h |