diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1993-12-22 19:21:06 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1993-12-22 19:21:06 -0200 |
commit | a4a3357c1c1c39c65845be66d5d1fb4eaf458d7e (patch) | |
tree | fff18af4e178104a1c1b90f3a608c6139ce52296 /makefile | |
parent | 7f8a7e16cd8e5c26884ec8a0ce055ab75e9932a2 (diff) | |
download | lua-a4a3357c1c1c39c65845be66d5d1fb4eaf458d7e.tar.gz lua-a4a3357c1c1c39c65845be66d5d1fb4eaf458d7e.tar.bz2 lua-a4a3357c1c1c39c65845be66d5d1fb4eaf458d7e.zip |
Novo analizador lexico para LUA
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ | |||
1 | # $Id: makefile,v 1.1 1993/12/17 18:59:10 celes Exp roberto $ | 1 | # $Id: makefile,v 1.2 1993/12/22 20:55:06 roberto Exp roberto $ |
2 | # Compilation parameters | 2 | # Compilation parameters |
3 | CC = gcc | 3 | CC = gcc |
4 | CFLAGS = -I/usr/5include -Wall -DMAXCODE=4096 -DMAXCONSTANT=1024 -DMAXSYMBOL=1024 | 4 | CFLAGS = -I/usr/5include -Wall -DMAXCODE=4096 -DMAXCONSTANT=1024 -DMAXSYMBOL=1024 |
@@ -8,8 +8,8 @@ ARFLAGS = rvl | |||
8 | 8 | ||
9 | # Aplication modules | 9 | # Aplication modules |
10 | LUAMOD = \ | 10 | LUAMOD = \ |
11 | lex.yy \ | ||
12 | y.tab \ | 11 | y.tab \ |
12 | lex \ | ||
13 | opcode \ | 13 | opcode \ |
14 | hash \ | 14 | hash \ |
15 | table \ | 15 | table \ |
@@ -27,7 +27,7 @@ LIBOBJS = $(LIBMOD:%=%.o) | |||
27 | lua : lua.o lua.a lualib.a | 27 | lua : lua.o lua.a lualib.a |
28 | $(CC) $(CFLAGS) -o $@ lua.c lua.a lualib.a -lm | 28 | $(CC) $(CFLAGS) -o $@ lua.c lua.a lualib.a -lm |
29 | 29 | ||
30 | lua.a : lex.yy.c y.tab.c $(LUAOBJS) | 30 | lua.a : y.tab.c $(LUAOBJS) |
31 | $(AR) $(ARFLAGS) $@ $? | 31 | $(AR) $(ARFLAGS) $@ $? |
32 | ranlib lua.a | 32 | ranlib lua.a |
33 | 33 | ||
@@ -43,13 +43,13 @@ liblua.so.1.0 : lua.o | |||
43 | %.o : %.c | 43 | %.o : %.c |
44 | $(CC) $(CFLAGS) -c -o $@ $< | 44 | $(CC) $(CFLAGS) -c -o $@ $< |
45 | 45 | ||
46 | lex.yy.c : lua.lex | ||
47 | lex lua.lex | ||
48 | 46 | ||
49 | y.tab.c : lua.stx | 47 | y.tab.c : lua.stx exscript |
50 | yacc -d lua.stx ; ex y.tab.c <exscript | 48 | yacc -d lua.stx ; ex y.tab.c <exscript |
51 | 49 | ||
52 | 50 | ||
51 | exscript : RCS/exscript,v | ||
52 | co $@ | ||
53 | hash.c : RCS/hash.c,v | 53 | hash.c : RCS/hash.c,v |
54 | co $@ | 54 | co $@ |
55 | hash.h : RCS/hash.h,v | 55 | hash.h : RCS/hash.h,v |
@@ -64,7 +64,7 @@ lua.c : RCS/lua.c,v | |||
64 | co $@ | 64 | co $@ |
65 | lua.h : RCS/lua.h,v | 65 | lua.h : RCS/lua.h,v |
66 | co $@ | 66 | co $@ |
67 | lua.lex : RCS/lua.lex,v | 67 | lex.c : RCS/lex.c,v |
68 | co $@ | 68 | co $@ |
69 | lua.stx : RCS/lua.stx,v | 69 | lua.stx : RCS/lua.stx,v |
70 | co $@ | 70 | co $@ |