2019-11-14 18:46:49 +01:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# check for system
|
|
|
|
if LINUX
|
|
|
|
AM_CPPFLAGS = -Wl,--no-as-needed
|
|
|
|
FL_LUA=linux
|
|
|
|
else
|
|
|
|
AM_CPPFLAGS = -Wl,-undefined,dynamic_lookup
|
|
|
|
FL_LUA=macosx
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS += -W -Wall -g -std=c99 -fPIC
|
|
|
|
# main plugin
|
|
|
|
lib_LTLIBRARIES = lua.la
|
|
|
|
lua_la_LDFLAGS = -module -avoid-version -shared
|
2020-01-02 17:51:08 +01:00
|
|
|
lua_la_SOURCES = lua-api.c
|
2019-11-14 18:46:49 +01:00
|
|
|
|
|
|
|
# lua libraris & modules
|
2020-01-02 17:51:08 +01:00
|
|
|
SUBDIRS = . lib
|
2019-11-14 18:46:49 +01:00
|
|
|
|
2020-01-02 17:51:08 +01:00
|
|
|
EXTRA_DIST = README.md APIs
|
2019-11-14 18:46:49 +01:00
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
mkdir -p $(prefix)/lib/lua
|
2020-01-01 21:17:46 +01:00
|
|
|
cp -v APIs/* $(prefix)/lib/lua
|
2020-01-02 17:51:08 +01:00
|
|
|
cp -v lib/core/lua-5.3.4/core.so $(prefix)/lib/lua
|