summaryrefslogtreecommitdiff
path: root/src/lua/Makefile
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1998-07-11 12:00:00 +0000
committerrepogen <>1998-07-11 12:00:00 +0000
commit377347776f1f3d820f92151f70bec667f96d5e6b (patch)
treecdb3ba26158df33547dfe765547177afcee119d1 /src/lua/Makefile
parent4f8c5d0f284e1f4da717aea5008915f185cd2e05 (diff)
downloadlua-github-377347776f1f3d820f92151f70bec667f96d5e6b.tar.gz
Lua 3.13.1
Diffstat (limited to 'src/lua/Makefile')
-rw-r--r--src/lua/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lua/Makefile b/src/lua/Makefile
new file mode 100644
index 00000000..1ec83706
--- /dev/null
+++ b/src/lua/Makefile
@@ -0,0 +1,32 @@
+# makefile for lua interpreter
+
+LUA= ../..
+
+include $(LUA)/config
+
+EXTRA_DEFS= $(POSIX)
+
+OBJS= lua.o
+SRCS= lua.c
+
+T= $(BIN)/lua
+
+all: $T
+
+$T: $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
+ $(CC) -o $@ $(OBJS) -L$(LIB) -llua -llualib -lm
+
+$(LIB)/liblua.a:
+ cd ..; make
+
+$(LIB)/liblualib.a:
+ cd ../lib; make
+
+clean:
+ rm -f $(OBJS) $T
+
+co:
+ co -q -f -M $(SRCS)
+
+klean: clean
+ rm -f $(SRCS)