librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu May 14 05:55:19 2009 +0100 (2009-05-14)
changeset 367 e45f50e940b6
parent 361 2523d03a840e
child 381 d35581ea0c67
permissions -rw-r--r--
Order the installation and removal of packages correctly so scripts can run
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 SUBDIRS = types
     4 
     5 INCLUDES = \
     6 	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
     7 	-I$(top_builddir)/src -I$(top_srcdir)/src \
     8 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
     9 	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
    10 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
    11 	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
    12 	-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
    13 	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
    14 	-DPACKAGE_LIB_DIR=\""$(libdir)"\"
    15 
    16 lib_LTLIBRARIES = librazor.la
    17 if HAVE_LUA
    18   check_PROGRAMS = test-lua
    19 endif
    20 
    21 librazorincludedir = $(includedir)/razor
    22 
    23 librazorinclude_HEADERS =              			\
    24 	razor.h
    25 
    26 librazor_la_SOURCES =                                	\
    27 	razor-internal.h				\
    28 	razor.h						\
    29 	razor.c						\
    30 	root.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) types/libtypes.la $(LUA_LIBS) \
    43 	../gl/libgnu.la $(EXTRA_LIBS)
    44 librazor_la_LDFLAGS = -no-undefined
    45 
    46 if HAVE_LUA
    47   test_lua_SOURCES = test-lua.c
    48   test_lua_LDADD = lua.lo util.lo types/libtypes.la $(LUA_LIBS) \
    49 	../gl/libgnu.la $(EXTRA_LIBS)
    50 
    51   TESTS = test-lua
    52 endif
    53 
    54 EXTRA_DIST = 			\
    55 	test.lua
    56 
    57 clean-local :
    58 	rm -f *~
    59