librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu Feb 05 22:43:29 2009 +0000 (2009-02-05)
changeset 352 4866573c6944
parent 335 636f120d1b5e
child 354 889f5ff1aaa6
permissions -rw-r--r--
Implement lua scripts with support for standard and posix libraries.
     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 if HAVE_LUA
    16   check_PROGRAMS = test-lua
    17 endif
    18 
    19 librazorincludedir = $(includedir)/razor
    20 
    21 librazorinclude_HEADERS =              			\
    22 	razor.h
    23 
    24 librazor_la_SOURCES =                                	\
    25 	razor-internal.h				\
    26 	razor.h						\
    27 	razor.c						\
    28 	root.c						\
    29 	types.c						\
    30 	util.c						\
    31 	rpm.c						\
    32 	iterator.c					\
    33 	importer.c					\
    34 	merger.c					\
    35 	transaction.c
    36 
    37 if HAVE_LUA
    38   librazor_la_SOURCES += lua.c
    39 endif
    40 
    41 librazor_la_LIBADD = $(ZLIB_LIBS) $(LUA_LIBS) ../gl/libgnu.la $(EXTRA_LIBS)
    42 
    43 if HAVE_LUA
    44   test_lua_SOURCES = test-lua.c
    45   test_lua_LDADD = lua.lo util.lo $(LUA_LIBS) ../gl/libgnu.la \
    46 	$(EXTRA_LIBS)
    47 
    48   TESTS = test-lua
    49 endif
    50 
    51 EXTRA_DIST = 			\
    52 	test.lua
    53 
    54 clean-local :
    55 	rm -f *~
    56