diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:33:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:33:21 -0300 |
commit | 9828893f7e73f39fa8ad268ca58a94929fa67d5c (patch) | |
tree | cfd66b908d6fa40c33990b0fe838c876f07c55f0 /makefile | |
parent | 6990da0057008adf934d88125ae9cf5162964117 (diff) | |
download | lua-9828893f7e73f39fa8ad268ca58a94929fa67d5c.tar.gz lua-9828893f7e73f39fa8ad268ca58a94929fa67d5c.tar.bz2 lua-9828893f7e73f39fa8ad268ca58a94929fa67d5c.zip |
Makefile
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 116 |
1 files changed, 63 insertions, 53 deletions
@@ -1,6 +1,11 @@ | |||
1 | # $Id: makefile,v 1.37 1997/07/01 19:32:41 roberto Exp roberto $ | 1 | # |
2 | ## $Id: $ | ||
3 | ## Makefile | ||
4 | ## See Copyright Notice in lua.h | ||
5 | # | ||
6 | |||
2 | 7 | ||
3 | #configuration | 8 | #CONFIGURATION |
4 | 9 | ||
5 | # define (undefine) POPEN if your system (does not) support piped I/O | 10 | # define (undefine) POPEN if your system (does not) support piped I/O |
6 | # | 11 | # |
@@ -13,7 +18,8 @@ | |||
13 | # define LUA_COMPAT2_5=0 if yous system does not need to be compatible with | 18 | # define LUA_COMPAT2_5=0 if yous system does not need to be compatible with |
14 | # version 2.5 (or older) | 19 | # version 2.5 (or older) |
15 | 20 | ||
16 | CONFIG = -DPOPEN -D_POSIX_SOURCE | 21 | CONFIG = -DPOPEN -D_POSIX_SOURCE |
22 | #CONFIG = -DLUA_COMPAT2_5=0 -DOLD_ANSI -DDEBUG | ||
17 | 23 | ||
18 | 24 | ||
19 | # Compilation parameters | 25 | # Compilation parameters |
@@ -21,8 +27,6 @@ CC = gcc | |||
21 | CWARNS = -Wall -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return | 27 | CWARNS = -Wall -Wmissing-prototypes -Wshadow -pedantic -Wpointer-arith -Wcast-align -Waggregate-return |
22 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 | 28 | CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 |
23 | 29 | ||
24 | #CC = acc | ||
25 | #CFLAGS = -fast -I/usr/5include | ||
26 | 30 | ||
27 | AR = ar | 31 | AR = ar |
28 | ARFLAGS = rvl | 32 | ARFLAGS = rvl |
@@ -30,24 +34,28 @@ ARFLAGS = rvl | |||
30 | 34 | ||
31 | # Aplication modules | 35 | # Aplication modules |
32 | LUAOBJS = \ | 36 | LUAOBJS = \ |
33 | parser.o \ | 37 | lapi.o \ |
34 | lex.o \ | 38 | lauxlib.o \ |
35 | opcode.o \ | 39 | lbuiltin.o \ |
36 | hash.o \ | 40 | ldo.o \ |
37 | table.o \ | 41 | lfunc.o \ |
38 | inout.o \ | 42 | lgc.o \ |
39 | tree.o \ | 43 | lglobal.o \ |
40 | fallback.o \ | 44 | llex.o \ |
41 | luamem.o \ | 45 | lmem.o \ |
42 | func.o \ | 46 | lobject.o \ |
43 | undump.o \ | 47 | lparser.o \ |
44 | auxlib.o \ | 48 | lstring.o \ |
45 | zio.o | 49 | ltable.o \ |
50 | ltm.o \ | ||
51 | lvm.o \ | ||
52 | lundump.o \ | ||
53 | lzio.o | ||
46 | 54 | ||
47 | LIBOBJS = \ | 55 | LIBOBJS = \ |
48 | iolib.o \ | 56 | liolib.o \ |
49 | mathlib.o \ | 57 | lmathlib.o \ |
50 | strlib.o | 58 | lstrlib.o |
51 | 59 | ||
52 | 60 | ||
53 | lua : lua.o liblua.a liblualib.a | 61 | lua : lua.o liblua.a liblualib.a |
@@ -67,16 +75,16 @@ liblua.so.1.0 : lua.o | |||
67 | y.tab.c y.tab.h : lua.stx | 75 | y.tab.c y.tab.h : lua.stx |
68 | yacc -d lua.stx | 76 | yacc -d lua.stx |
69 | 77 | ||
70 | parser.c : y.tab.c | 78 | lparser.c : y.tab.c |
71 | sed -e 's/yy/luaY_/g' -e 's/malloc\.h/stdlib\.h/g' y.tab.c > parser.c | 79 | sed -e 's/yy/luaY_/g' -e 's/malloc\.h/stdlib\.h/g' y.tab.c > lparser.c |
72 | 80 | ||
73 | parser.h : y.tab.h | 81 | ltokens.h : y.tab.h |
74 | sed -e 's/yy/luaY_/g' y.tab.h > parser.h | 82 | sed -e 's/yy/luaY_/g' y.tab.h > ltokens.h |
75 | 83 | ||
76 | clear : | 84 | clear : |
77 | rcsclean | 85 | rcsclean |
78 | rm -f *.o | 86 | rm -f *.o |
79 | rm -f parser.c parser.h y.tab.c y.tab.h | 87 | rm -f lparser.c ltokens.h y.tab.c y.tab.h |
80 | co lua.h lualib.h luadebug.h | 88 | co lua.h lualib.h luadebug.h |
81 | 89 | ||
82 | 90 | ||
@@ -87,30 +95,32 @@ clear : | |||
87 | co $@ | 95 | co $@ |
88 | 96 | ||
89 | 97 | ||
90 | auxlib.o: auxlib.c lua.h auxlib.h luadebug.h | 98 | lapi.o: lapi.c lapi.h lua.h lobject.h lauxlib.h ldo.h lfunc.h lgc.h \ |
91 | fallback.o: fallback.c auxlib.h lua.h luamem.h fallback.h opcode.h \ | 99 | lglobal.h lmem.h lstring.h ltable.h ltm.h luadebug.h lvm.h |
92 | types.h tree.h func.h table.h hash.h | 100 | lauxlib.o: lauxlib.c lauxlib.h lua.h luadebug.h |
93 | func.o: func.c luadebug.h lua.h table.h tree.h types.h opcode.h func.h \ | 101 | lbuiltin.o: lbuiltin.c lapi.h lua.h lobject.h lauxlib.h lbuiltin.h \ |
94 | luamem.h inout.h | 102 | lglobal.h lmem.h lstring.h ltable.h ltm.h |
95 | hash.o: hash.c luamem.h opcode.h lua.h types.h tree.h func.h hash.h \ | 103 | ldo.o: ldo.c ldo.h lobject.h lua.h lgc.h lmem.h lparser.h lzio.h ltm.h \ |
96 | table.h auxlib.h | 104 | luadebug.h lundump.h lvm.h |
97 | inout.o: inout.c auxlib.h lua.h fallback.h opcode.h types.h tree.h \ | 105 | lfunc.o: lfunc.c lfunc.h lobject.h lua.h lmem.h |
98 | func.h hash.h inout.h lex.h zio.h luamem.h table.h undump.h | 106 | lgc.o: lgc.c ldo.h lobject.h lua.h lfunc.h lgc.h lglobal.h lmem.h \ |
99 | iolib.o: iolib.c lualoc.h lua.h auxlib.h luadebug.h lualib.h | 107 | lstring.h ltable.h ltm.h |
100 | lex.o: lex.c auxlib.h lua.h luamem.h tree.h types.h table.h opcode.h \ | 108 | lglobal.o: lglobal.c lbuiltin.h lglobal.h lobject.h lua.h lmem.h \ |
101 | func.h lex.h zio.h inout.h luadebug.h parser.h | 109 | lstring.h |
102 | lua.o: lua.c lualoc.h luadebug.h lua.h auxlib.h lualib.h | 110 | liolib.o: liolib.c lauxlib.h lua.h luadebug.h lualib.h |
103 | luamem.o: luamem.c luamem.h lua.h | 111 | llex.o: llex.c lglobal.h lobject.h lua.h llex.h lzio.h lmem.h \ |
104 | mathlib.o: mathlib.c lualib.h lua.h auxlib.h | 112 | lparser.h lstring.h ltokens.h luadebug.h |
105 | opcode.o: opcode.c lualoc.h luadebug.h lua.h luamem.h opcode.h types.h \ | 113 | lmathlib.o: lmathlib.c lauxlib.h lua.h lualib.h |
106 | tree.h func.h hash.h inout.h table.h fallback.h auxlib.h lex.h zio.h | 114 | lmem.o: lmem.c lmem.h lua.h |
107 | parser.o: parser.c luadebug.h lua.h luamem.h lex.h zio.h opcode.h \ | 115 | lobject.o: lobject.c lobject.h lua.h |
108 | types.h tree.h func.h hash.h inout.h table.h | 116 | lparser.o: lparser.c lauxlib.h lua.h ldo.h lobject.h lfunc.h lglobal.h \ |
109 | strlib.o: strlib.c lua.h auxlib.h lualib.h | 117 | llex.h lzio.h lmem.h lopcodes.h lparser.h lstring.h luadebug.h |
110 | table.o: table.c luamem.h auxlib.h lua.h func.h types.h tree.h \ | 118 | lstring.o: lstring.c lmem.h lobject.h lua.h lstring.h |
111 | opcode.h hash.h table.h inout.h fallback.h luadebug.h | 119 | lstrlib.o: lstrlib.c lauxlib.h lua.h lualib.h |
112 | tree.o: tree.c luamem.h lua.h tree.h types.h lex.h zio.h hash.h \ | 120 | ltable.o: ltable.c lauxlib.h lua.h lmem.h lobject.h ltable.h |
113 | opcode.h func.h table.h fallback.h | 121 | ltm.o: ltm.c lauxlib.h lua.h ldo.h lobject.h lmem.h ltm.h lapi.h |
114 | undump.o: undump.c auxlib.h lua.h opcode.h types.h tree.h func.h \ | 122 | lua.o: lua.c lua.h lualib.h luadebug.h |
115 | luamem.h table.h undump.h zio.h | 123 | lundump.o: lundump.c lundump.h lobject.h lua.h lzio.h |
116 | zio.o: zio.c zio.h | 124 | lvm.o: lvm.c lauxlib.h lua.h ldo.h lobject.h lfunc.h lgc.h lglobal.h \ |
125 | lmem.h lopcodes.h lstring.h ltable.h ltm.h luadebug.h lvm.h | ||
126 | lzio.o: lzio.c lzio.h | ||