diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-12-21 14:14:04 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-12-21 14:14:04 -0200 |
commit | 27ae8432b6125a56b0bb31651de8cebc1b30353f (patch) | |
tree | f2757ebd2a2154b4273975c4973ccbe509640c4f /makefile | |
parent | 415ee250b5b544c91157a037a1e3c4a8f0b6cc4c (diff) | |
download | lua-27ae8432b6125a56b0bb31651de8cebc1b30353f.tar.gz lua-27ae8432b6125a56b0bb31651de8cebc1b30353f.tar.bz2 lua-27ae8432b6125a56b0bb31651de8cebc1b30353f.zip |
names generated by yacc (starting with "yy") are changed to start with
"luaY_", to avoid name clashes with hosts using yacc.
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | # $Id: makefile,v 1.15 1995/10/17 18:16:58 roberto Exp roberto $ | 1 | # $Id: makefile,v 1.16 1995/11/10 17:56:06 roberto Exp roberto $ |
2 | 2 | ||
3 | #configuration | 3 | #configuration |
4 | 4 | ||
@@ -47,14 +47,19 @@ lualib.a : $(LIBOBJS) | |||
47 | liblua.so.1.0 : lua.o | 47 | liblua.so.1.0 : lua.o |
48 | ld -o liblua.so.1.0 $(LUAOBJS) | 48 | ld -o liblua.so.1.0 $(LUAOBJS) |
49 | 49 | ||
50 | y.tab.c y.tab.h : lua.stx | ||
51 | yacc++ -d lua.stx | ||
50 | 52 | ||
51 | parser.c : lua.stx | 53 | parser.c : y.tab.c |
52 | yacc++ -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h | 54 | sed -e 's/yy/luaY_/g' y.tab.c > parser.c |
55 | |||
56 | parser.h : y.tab.h | ||
57 | sed -e 's/yy/luaY_/g' y.tab.h > parser.h | ||
53 | 58 | ||
54 | clear : | 59 | clear : |
55 | rcsclean | 60 | rcsclean |
56 | rm -f *.o | 61 | rm -f *.o |
57 | rm -f parser.c parser.h | 62 | rm -f parser.c parser.h y.tab.c y.tab.h |
58 | co lua.h lualib.h luadebug.h | 63 | co lua.h lualib.h luadebug.h |
59 | 64 | ||
60 | % : RCS/%,v | 65 | % : RCS/%,v |