summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..31ff59c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CONFIG= ./config
+
+include $(CONFIG)
+
+OBJS= src/luamq.o
+SRCS= src/luamq.h src/luamq.c
+AR= ar rcu
+RANLIB= ranlib
+
+lib: src/$(LIBNAME)
+
+src/$(LIBNAME): $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $(LIB_OPTION) $(OBJS)
+
+install:
+ mkdir -p $(LUA_LIBDIR)
+ cp src/$(LIBNAME) $(LUA_LIBDIR)/
+
+clean:
+ rm -f src/$(LIBNAME) src/*.o