aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-12-04 04:14:22 -0600
committerthe lemons <citrons@mondecitronne.com>2022-12-04 04:14:22 -0600
commit8e4af6b2c8602bfb7fd086375d741345947494aa (patch)
tree99cfa055853df745c7bbb486b3dcb6bacf7b9d14 /Makefile
initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4b4860a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+LUA_VER=5.3
+CC = cc
+LD = ld
+CFLAGS = -std=c99 -Wall -O2 -fPIC -I/usr/include/lua$(LUA_VER)
+LFLAGS = -shared -llmdb
+
+lmdb.so: lmdb.o
+ $(LD) $(LFLAGS) -o $@ $<
+
+lmdb.o: lmdb.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+.PHONY: clean
+clean:
+ rm -rf lmdb.o
+ rm -rf lmdb.so