librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Apr 29 17:00:01 2009 +0100 (2009-04-29)
changeset 361 2523d03a840e
parent 357 39f8dab73084
child 364 66ec30bde5e5
permissions -rw-r--r--
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
     2 
     3 INCLUDES = \
     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)"\"
    13 
    14 lib_LTLIBRARIES = librazor.la
    15 check_PROGRAMS = test-hashtable
    16 if HAVE_LUA
    17   check_PROGRAMS += test-lua
    18 endif
    19 
    20 librazorincludedir = $(includedir)/razor
    21 
    22 librazorinclude_HEADERS =              			\
    23 	razor.h
    24 
    25 librazor_la_SOURCES =                                	\
    26 	razor-internal.h				\
    27 	razor.h						\
    28 	razor.c						\
    29 	root.c						\
    30 	types.c						\
    31 	util.c						\
    32 	rpm.c						\
    33 	iterator.c					\
    34 	importer.c					\
    35 	merger.c					\
    36 	transaction.c
    37 
    38 if HAVE_LUA
    39   librazor_la_SOURCES += lua.c
    40 endif
    41 
    42 librazor_la_LIBADD = $(ZLIB_LIBS) $(LUA_LIBS) ../gl/libgnu.la $(EXTRA_LIBS)
    43 librazor_la_LDFLAGS = -no-undefined
    44 
    45 test_hashtable_SOURCES = test-hashtable.c
    46 test_hashtable_LDADD = types.lo ../gl/libgnu.la $(EXTRA_LIBS)
    47 
    48 TESTS = test-hashtable
    49 
    50 if HAVE_LUA
    51   test_lua_SOURCES = test-lua.c
    52   test_lua_LDADD = lua.lo util.lo types.lo $(LUA_LIBS) ../gl/libgnu.la \
    53 	$(EXTRA_LIBS)
    54 
    55   TESTS += test-lua
    56 endif
    57 
    58 EXTRA_DIST = 			\
    59 	test.lua
    60 
    61 clean-local :
    62 	rm -f *~
    63