summaryrefslogtreecommitdiff
path: root/clients/lib/Makefile
diff options
context:
space:
mode:
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)