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).
rhughes@241
     1
## Process this file with automake to produce Makefile.in
rhughes@241
     2
rhughes@241
     3
INCLUDES = \
ali@323
     4
	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
rhughes@241
     5
	-I$(top_builddir)/src -I$(top_srcdir)/src \
rhughes@241
     6
	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
rhughes@241
     7
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
rhughes@241
     8
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
rhughes@241
     9
	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
rhughes@241
    10
	-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
rhughes@241
    11
	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
rhughes@241
    12
	-DPACKAGE_LIB_DIR=\""$(libdir)"\"
rhughes@241
    13
rhughes@241
    14
lib_LTLIBRARIES = librazor.la
ali@357
    15
check_PROGRAMS = test-hashtable
ali@352
    16
if HAVE_LUA
ali@357
    17
  check_PROGRAMS += test-lua
ali@352
    18
endif
rhughes@241
    19
rhughes@241
    20
librazorincludedir = $(includedir)/razor
rhughes@241
    21
rhughes@241
    22
librazorinclude_HEADERS =              			\
rhughes@241
    23
	razor.h
rhughes@241
    24
rhughes@241
    25
librazor_la_SOURCES =                                	\
rhughes@241
    26
	razor-internal.h				\
rhughes@241
    27
	razor.h						\
rhughes@241
    28
	razor.c						\
krh@248
    29
	root.c						\
rhughes@241
    30
	types.c						\
rhughes@241
    31
	util.c						\
krh@248
    32
	rpm.c						\
krh@248
    33
	iterator.c					\
krh@248
    34
	importer.c					\
krh@248
    35
	merger.c					\
krh@248
    36
	transaction.c
rhughes@241
    37
ali@352
    38
if HAVE_LUA
ali@352
    39
  librazor_la_SOURCES += lua.c
ali@352
    40
endif
ali@352
    41
ali@352
    42
librazor_la_LIBADD = $(ZLIB_LIBS) $(LUA_LIBS) ../gl/libgnu.la $(EXTRA_LIBS)
ali@354
    43
librazor_la_LDFLAGS = -no-undefined
ali@352
    44
ali@357
    45
test_hashtable_SOURCES = test-hashtable.c
ali@357
    46
test_hashtable_LDADD = types.lo ../gl/libgnu.la $(EXTRA_LIBS)
ali@357
    47
ali@357
    48
TESTS = test-hashtable
ali@357
    49
ali@352
    50
if HAVE_LUA
ali@352
    51
  test_lua_SOURCES = test-lua.c
ali@361
    52
  test_lua_LDADD = lua.lo util.lo types.lo $(LUA_LIBS) ../gl/libgnu.la \
ali@352
    53
	$(EXTRA_LIBS)
ali@352
    54
ali@357
    55
  TESTS += test-lua
ali@352
    56
endif
ali@352
    57
ali@352
    58
EXTRA_DIST = 			\
ali@352
    59
	test.lua
rhughes@241
    60
rhughes@241
    61
clean-local :
rhughes@241
    62
	rm -f *~
rhughes@241
    63