Makefile: link against user-configurable Lua version
This commit is contained in:
parent
c7334a030b
commit
79c31d6782
2 changed files with 4 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -13,6 +13,7 @@ MANDIR = $(PREFIX)/man
|
|||
|
||||
CFLAGS ?= -g -O2
|
||||
FULL_WARNINGS = no
|
||||
LUA_VERSION ?= lua
|
||||
PKG_CONFIG ?= pkg-config
|
||||
WITH_X11 ?= yes
|
||||
WITH_SDL ?= yes
|
||||
|
@ -82,8 +83,8 @@ override CPPFLAGS := -I./src/ -D_GNU_SOURCE=1 \
|
|||
LIBS = -lm
|
||||
|
||||
### lua
|
||||
override CFLAGS += $(shell "$(PKG_CONFIG)" --cflags lua)
|
||||
LIBS += $(shell "$(PKG_CONFIG)" --libs lua)
|
||||
override CFLAGS += $(shell "$(PKG_CONFIG)" --cflags $(LUA_VERSION))
|
||||
LIBS += $(shell "$(PKG_CONFIG)" --libs $(LUA_VERSION))
|
||||
|
||||
### debugger
|
||||
override CFLAGS += $(shell "$(PKG_CONFIG)" --cflags readline)
|
||||
|
|
|
@ -86,6 +86,7 @@ Ncurses front-end is always built-in.
|
|||
|
||||
### Dependencies (see .github/workflows/c-cpp.yml for debian packages names)
|
||||
|
||||
- Lua
|
||||
- readline
|
||||
|
||||
for SDL version:
|
||||
|
|
Loading…
Reference in a new issue