summaryrefslogtreecommitdiff
path: root/clients/lib/Makefile
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1994-07-08 12:00:00 +0000
committerrepogen <>1994-07-08 12:00:00 +0000
commit944fc7d7d95575f2b8023c1f3d4ac19e1369fc76 (patch)
treeeabf0822f2058229cd0d49c7928683b8cf0ed88e /clients/lib/Makefile
parent8b5979a7e8b9732aa2883d2384f853d87b594770 (diff)
downloadlua-github-1.1.tar.gz
Lua 1.11.1
Diffstat (limited to 'clients/lib/Makefile')
-rw-r--r--clients/lib/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/clients/lib/Makefile b/clients/lib/Makefile
new file mode 100644
index 00000000..4110a62f
--- /dev/null
+++ b/clients/lib/Makefile
@@ -0,0 +1,23 @@
+# makefile for lualib
+
+INC= $(LUA)/include
+LIB= $(LUA)/lib
+
+CC= gcc
+CFLAGS= -Wall -O2 -I$(INC) $(DEFS)
+
+OBJS= iolib.o mathlib.o strlib.o
+SLIB= $(LIB)/liblualib.a
+DLIB= $(LIB)/liblualib.so.1.1
+
+libs: $(SLIB) $(DLIB)
+
+$(SLIB): $(OBJS)
+ ar ruvl $@ $(OBJS)
+ ranlib $(SLIB)
+
+$(DLIB): $(OBJS)
+ ld -o $@ $(OBJS)
+
+clean:
+ rm -f $(OBJS) $(SLIB) $(DLIB)