From 79c31d6782fd754057493f36fbb8229c92325902 Mon Sep 17 00:00:00 2001 From: Lucio Sauer Date: Fri, 16 Aug 2024 03:03:37 +0200 Subject: [PATCH] Makefile: link against user-configurable Lua version --- Makefile | 5 +++-- README.md | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 06af509..2c71232 100644 --- a/Makefile +++ b/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) diff --git a/README.md b/README.md index 37651c6..601f441 100644 --- a/README.md +++ b/README.md @@ -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: