librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Apr 17 23:08:11 2009 +0100 (2009-04-17)
changeset 358 13beaca8b75f
parent 354 889f5ff1aaa6
child 361 2523d03a840e
permissions -rw-r--r--
Make 0 a valid hashtable value consistently (and 0xFFFFFFFF invalid).
     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 $(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