There was an error while loading. Please reload this page.
1 parent 4b5b0f3 commit 9250920Copy full SHA for 9250920
1 file changed
Makefile
@@ -4,12 +4,23 @@ RM = rm -f
4
CFLAG = -shared -fPIC
5
TARGET = bigdecimal.so
6
7
+LUA_INCLUDE_DIR ?=
8
+LUA_LIBRARIES ?=
9
BIGDECIMAL_SOURCES = lib/bigdecimal/bigdecimal.cpp
10
BIGDECIMAL_INCLUDE_DIR = lib/bigdecimal
11
12
BUILD_CFLAGS = $(CFLAG) -I $(BIGDECIMAL_INCLUDE_DIR)
13
SOURCE = $(BIGDECIMAL_SOURCES) lua_bigdecimal.c
14
15
+
16
+ifneq ($(LUA_INCLUDE_DIR),)
17
+ BUILD_CFLAGS+= -I $(LUA_INCLUDE_DIR)
18
+endif
19
+ifneq ($(LUA_LIBRARIES),)
20
+ BUILD_CFLAGS+= -L $(LUA_LIBRARIES)
21
22
23
24
all: $(TARGET)
25
26
$(TARGET):
0 commit comments