mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-25 17:08:23 +01:00
30 lines
590 B
Makefile
30 lines
590 B
Makefile
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
|
|
lua_la_SOURCES = lua-api.c
|
|
|
|
# lua libraris & modules
|
|
SUBDIRS = . lib
|
|
|
|
EXTRA_DIST = README.md APIs
|
|
|
|
install-data-local:
|
|
-mkdir -p $(DESTDIR)/$(prefix)/lib/lua
|
|
-cp -v APIs/* $(DESTDIR)/$(prefix)/lib/lua
|
|
-cp -v lib/core/lua-5.3.4/core.so $(DESTDIR)/$(prefix)/lib/lua
|