aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2023-03-20 22:55:39 -0500
committerthe lemons <citrons@mondecitronne.com>2023-03-20 22:55:39 -0500
commit0d050815788bf1dfdac1bc417a801f69684079c8 (patch)
tree3ee64afd83ed66399fc76676f1076dbb6c7da029 /Makefile
parentea05a9db6c250989742ecec7abebbaa204a3bdb3 (diff)
improve makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 21d3629..805c98f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,8 @@
-LUA_VER=5.3
+LUA_VER_MAJOR=5
+LUA_VER_MINOR=3
CC = cc
LD = ld
-MORE_CFLAGS=
-ifeq ($(LUA_VER),5.1)
- MORE_CFLAGS=-DLUA_5_1
-endif
-CFLAGS = $(MORE_CFLAGS) -std=c99 -Wall -O2 -fPIC -I/usr/include/lua$(LUA_VER)
+CFLAGS = -DLUA_VER=$(LUA_VER_MAJOR)$(LUA_VER_MINOR) -std=c99 -Wall -O2 -fPIC -I/usr/include/lua$(LUA_VER_MAJOR).$(LUA_VER_MINOR)
LFLAGS = -shared -llmdb
lmdb.so: lmdb.o