5 LUCI_INSTALLDIR = /usr/lib/lua/luci
6 LUA_SHLIBS = $(shell pkg-config --silence-errors --libs lua5.1)
7 LUA_LIBS = $(if $(LUA_SHLIBS),$(LUA_SHLIBS),$(firstword $(wildcard /usr/lib/liblua.a /usr/local/lib/liblua.a /opt/local/lib/liblua.a)))
8 LUA_CFLAGS = $(shell pkg-config --silence-errors --cflags lua5.1)
10 $(error LUA installation not found)
18 EXTRA_CFLAGS = --std=gnu99
19 WFLAGS = -Wall -Werror -pedantic
21 COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(WFLAGS)
23 SHLIB_FLAGS = -bundle -undefined dynamic_lookup