Add support for preloading lua modules. This is useful both when
providing lua bindings to applications based on librazor and when
producing static binaries using librazor (where otherwise the lua
POSIX library would need to be included as an additional dynamic
object).
1 ## Process this file with automake to produce Makefile.in
4 -I$(top_builddir)/gl -I$(top_srcdir)/gl \
5 -I$(top_builddir)/src -I$(top_srcdir)/src \
6 -DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
7 -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
8 -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
9 -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
10 -DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
11 -DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
12 -DPACKAGE_LIB_DIR=\""$(libdir)"\"
14 lib_LTLIBRARIES = librazor.la
15 check_PROGRAMS = test-hashtable
17 check_PROGRAMS += test-lua
20 librazorincludedir = $(includedir)/razor
22 librazorinclude_HEADERS = \
25 librazor_la_SOURCES = \
39 librazor_la_SOURCES += lua.c
42 librazor_la_LIBADD = $(ZLIB_LIBS) $(LUA_LIBS) ../gl/libgnu.la $(EXTRA_LIBS)
43 librazor_la_LDFLAGS = -no-undefined
45 test_hashtable_SOURCES = test-hashtable.c
46 test_hashtable_LDADD = types.lo ../gl/libgnu.la $(EXTRA_LIBS)
48 TESTS = test-hashtable
51 test_lua_SOURCES = test-lua.c
52 test_lua_LDADD = lua.lo util.lo types.lo $(LUA_LIBS) ../gl/libgnu.la \