diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-11-06 18:48:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-11-06 18:48:03 -0200 |
commit | fd379b38f7e4be161f0e362745854a2f7f4b5d07 (patch) | |
tree | 3a6dfbd79ea2f5dee824ef2b1c204afafac10d12 | |
parent | aa4d86507707361e93aee6a0b52f268ee0ade236 (diff) | |
download | lua-2.5-beta.tar.gz lua-2.5-beta.tar.bz2 lua-2.5-beta.zip |
new flag for STRERROR; libs now are called lib...v2.5-beta
-rw-r--r-- | makefile | 42 |
1 files changed, 24 insertions, 18 deletions
@@ -1,13 +1,15 @@ | |||
1 | # $Id: makefile,v 1.25 1996/05/06 14:38:40 roberto Exp $ | 1 | # $Id: makefile,v 1.27 1996/08/28 20:45:48 roberto Exp roberto $ |
2 | 2 | ||
3 | #configuration | 3 | #configuration |
4 | 4 | ||
5 | # define (undefine) POPEN if your system (does not) support piped I/O | 5 | # define (undefine) POPEN if your system (does not) support piped I/O |
6 | # define (undefine) POSIX if your system is (not) POSIX compliant | 6 | # define (undefine) _POSIX_SOURCE if your system is (not) POSIX compliant |
7 | CONFIG = -DPOPEN -DPOSIX | 7 | #define (undefine) NOSTRERROR if your system does NOT have function "strerror" |
8 | # (although this is ANSI, SunOS does not comply; so, add "-DNOSTRERROR" on SunOS) | ||
9 | CONFIG = -DPOPEN -D_POSIX_SOURCE | ||
8 | # Compilation parameters | 10 | # Compilation parameters |
9 | CC = gcc | 11 | CC = gcc |
10 | CFLAGS = $(CONFIG) -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 | 12 | CFLAGS = $(CONFIG) -Wall -Wmissing-prototypes -Wshadow -ansi -O2 -pedantic |
11 | 13 | ||
12 | #CC = acc | 14 | #CC = acc |
13 | #CFLAGS = -fast -I/usr/5include | 15 | #CFLAGS = -fast -I/usr/5include |
@@ -15,6 +17,7 @@ CFLAGS = $(CONFIG) -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2 | |||
15 | AR = ar | 17 | AR = ar |
16 | ARFLAGS = rvl | 18 | ARFLAGS = rvl |
17 | 19 | ||
20 | |||
18 | # Aplication modules | 21 | # Aplication modules |
19 | LUAOBJS = \ | 22 | LUAOBJS = \ |
20 | parser.o \ | 23 | parser.o \ |
@@ -35,28 +38,28 @@ LIBOBJS = \ | |||
35 | strlib.o | 38 | strlib.o |
36 | 39 | ||
37 | 40 | ||
38 | lua : lua.o lua.a lualib.a | 41 | lua : lua.o liblua.a liblualib.a |
39 | $(CC) $(CFLAGS) -o $@ lua.o lua.a lualib.a -lm | 42 | $(CC) $(CFLAGS) -o $@ lua.o -L. -llua -llualib -lm |
40 | 43 | ||
41 | lua.a : $(LUAOBJS) | 44 | liblua.a : $(LUAOBJS) |
42 | $(AR) $(ARFLAGS) $@ $? | 45 | $(AR) $(ARFLAGS) $@ $? |
43 | ranlib lua.a | 46 | ranlib $@ |
44 | 47 | ||
45 | lualib.a : $(LIBOBJS) | 48 | liblualib.a : $(LIBOBJS) |
46 | $(AR) $(ARFLAGS) $@ $? | 49 | $(AR) $(ARFLAGS) $@ $? |
47 | ranlib $@ | 50 | ranlib $@ |
48 | 51 | ||
49 | liblua.so.1.0 : lua.o | 52 | liblua.so.1.0 : lua.o |
50 | ld -o liblua.so.1.0 $(LUAOBJS) | 53 | ld -o liblua.so.1.0 $(LUAOBJS) |
51 | 54 | ||
52 | #y.tab.c y.tab.h : lua.stx | 55 | y.tab.c y.tab.h : lua.stx |
53 | # yacc++ -d lua.stx | 56 | yacc -d lua.stx |
54 | 57 | ||
55 | #parser.c : y.tab.c | 58 | parser.c : y.tab.c |
56 | # sed -e 's/yy/luaY_/g' -e 's/malloc\.h/stdlib\.h/g' y.tab.c > parser.c | 59 | sed -e 's/yy/luaY_/g' -e 's/malloc\.h/stdlib\.h/g' y.tab.c > parser.c |
57 | 60 | ||
58 | #parser.h : y.tab.h | 61 | parser.h : y.tab.h |
59 | # sed -e 's/yy/luaY_/g' y.tab.h > parser.h | 62 | sed -e 's/yy/luaY_/g' y.tab.h > parser.h |
60 | 63 | ||
61 | clear : | 64 | clear : |
62 | rcsclean | 65 | rcsclean |
@@ -65,8 +68,11 @@ clear : | |||
65 | co lua.h lualib.h luadebug.h | 68 | co lua.h lualib.h luadebug.h |
66 | 69 | ||
67 | 70 | ||
68 | #% : RCS/%,v | 71 | %.h : RCS/%.h,v |
69 | # co $@ | 72 | co $@ |
73 | |||
74 | %.c : RCS/%.c,v | ||
75 | co $@ | ||
70 | 76 | ||
71 | 77 | ||
72 | fallback.o : fallback.c mem.h fallback.h lua.h opcode.h types.h tree.h func.h \ | 78 | fallback.o : fallback.c mem.h fallback.h lua.h opcode.h types.h tree.h func.h \ |
@@ -80,7 +86,7 @@ lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h lex.h inout.h \ | |||
80 | luadebug.h parser.h | 86 | luadebug.h parser.h |
81 | lua.o : lua.c lua.h lualib.h | 87 | lua.o : lua.c lua.h lualib.h |
82 | mathlib.o : mathlib.c lualib.h lua.h | 88 | mathlib.o : mathlib.c lualib.h lua.h |
83 | mem.o : mem.c mem.h lua.h table.h tree.h types.h opcode.h func.h | 89 | mem.o : mem.c mem.h lua.h |
84 | opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ | 90 | opcode.o : opcode.c luadebug.h lua.h mem.h opcode.h types.h tree.h func.h hash.h \ |
85 | inout.h table.h fallback.h undump.h | 91 | inout.h table.h fallback.h undump.h |
86 | parser.o : parser.c luadebug.h lua.h mem.h lex.h opcode.h types.h tree.h func.h \ | 92 | parser.o : parser.c luadebug.h lua.h mem.h lex.h opcode.h types.h tree.h func.h \ |