aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-12-21 14:14:04 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-12-21 14:14:04 -0200
commit27ae8432b6125a56b0bb31651de8cebc1b30353f (patch)
treef2757ebd2a2154b4273975c4973ccbe509640c4f /makefile
parent415ee250b5b544c91157a037a1e3c4a8f0b6cc4c (diff)
downloadlua-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--makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/makefile b/makefile
index b1744d3d..f46093cd 100644
--- a/makefile
+++ b/makefile
@@ -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)
47liblua.so.1.0 : lua.o 47liblua.so.1.0 : lua.o
48 ld -o liblua.so.1.0 $(LUAOBJS) 48 ld -o liblua.so.1.0 $(LUAOBJS)
49 49
50y.tab.c y.tab.h : lua.stx
51 yacc++ -d lua.stx
50 52
51parser.c : lua.stx 53parser.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
56parser.h : y.tab.h
57 sed -e 's/yy/luaY_/g' y.tab.h > parser.h
53 58
54clear : 59clear :
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