summaryrefslogtreecommitdiff
path: root/src/yacc/Makefile
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1995-02-07 12:00:00 +0000
committerrepogen <>1995-02-07 12:00:00 +0000
commita8b6ba0954edb9e0e669e1f451b9a8f145ce5166 (patch)
tree35e9e9999968c4f13a25a5f647203456f044274a /src/yacc/Makefile
parent944fc7d7d95575f2b8023c1f3d4ac19e1369fc76 (diff)
downloadlua-github-2.1.tar.gz
Lua 2.12.1
Diffstat (limited to 'src/yacc/Makefile')
-rw-r--r--src/yacc/Makefile30
1 files changed, 3 insertions, 27 deletions
diff --git a/src/yacc/Makefile b/src/yacc/Makefile
index 1d887e10..284d4ab5 100644
--- a/src/yacc/Makefile
+++ b/src/yacc/Makefile
@@ -1,27 +1,3 @@
-# makefile for lua
-
-LIB= $(LUA)/lib
-INC= $(LUA)/inc
-
-CC= gcc
-CFLAGS= -g -Wall -O2 -I$(INC) $(DEFS)
-DEFS= -DMAXCODE=64000 -DMAXCONSTANT=1024 -DMAXSYMBOL=1024 -DMAXARRAY=1024
-
-OBJS= hash.o inout.o lex.o opcode.o table.o y.tab.o
-SLIB= $(LIB)/lua.a
-DLIB= $(LIB)/liblua.so.1.1
-
-libs: $(SLIB) $(DLIB)
-
-$(SLIB): y.tab.c $(OBJS)
- ar ruvl $@ $(OBJS)
- ranlib $(SLIB)
-
-$(DLIB): $(OBJS)
- ld -o $@ $(OBJS)
-
-y.tab.c: lua.stx exscript
- yacc -d lua.stx ; ex y.tab.c <exscript
-
-clean:
- rm -f $(OBJS) $(SLIB) $(DLIB)
+parser.c:
+ co -M lua.stx
+ yacc -d lua.stx ; mv -f y.tab.c ../parser.c ; mv -f y.tab.h ../parser.h