diff options
| author | the lemons <citrons@mondecitronne.com> | 2022-12-04 04:14:22 -0600 |
|---|---|---|
| committer | the lemons <citrons@mondecitronne.com> | 2022-12-04 04:14:22 -0600 |
| commit | 8e4af6b2c8602bfb7fd086375d741345947494aa (patch) | |
| tree | 99cfa055853df745c7bbb486b3dcb6bacf7b9d14 /Makefile | |
initial
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
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 |
