summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1995-11-28 12:00:00 +0000
committerrepogen <>1995-11-28 12:00:00 +0000
commit71754d2f6423fb9b6e87658e58bafc5470d53f65 (patch)
treec704e97b80e52a52d3152738941bb4c8ca676b97 /src/Makefile
parenta8b6ba0954edb9e0e669e1f451b9a8f145ce5166 (diff)
downloadlua-github-71754d2f6423fb9b6e87658e58bafc5470d53f65.tar.gz
Lua 2.22.2
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 6d1f1bb1..f6296781 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,12 +10,13 @@ WARN= -Wall -Wmissing-prototypes -Wshadow -ansi
CC= gcc
CFLAGS= $(INCS) $(DEFS) $(WARN) -O2
-OBJS= fallback.o hash.o inout.o lex.o mem.o opcode.o parser.o table.o tree.o
+OBJS= fallback.o func.o hash.o inout.o lex.o mem.o opcode.o parser.o table.o tree.o
+SRCS= fallback.c func.c hash.c inout.c lex.c mem.c opcode.c table.c tree.c fallback.h func.h hash.h inout.h mem.h opcode.h table.h tree.h types.h ugly.h lua.stx
SLIB= $(LIB)/liblua.a
# dynamic libraries only work for SunOs
-DLIB= $(LIB)/liblua.so.2.1
+DLIB= $(LIB)/liblua.so.$(VERSION)
all: $(SLIB)
@@ -32,4 +33,8 @@ clean:
rm -f $(OBJS) $(SLIB) $(DLIB)
co:
- co -M fallback.c hash.c inout.c lex.c mem.c opcode.c table.c tree.c fallback.h hash.h inout.h mem.h opcode.h table.h tree.h types.h ugly.h
+ co -f -M $(SRCS)
+ yacc -d lua.stx ; mv -f y.tab.c parser.c ; mv -f y.tab.h parser.h
+
+klean: clean
+ rm -f $(SRCS) parser.c parser.h