librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Mon Jul 11 16:49:53 2016 +0100 (2016-07-11)
changeset 489 9d0a04089d22
parent 475 008c75a5e08d
permissions -rw-r--r--
Fix compiler warnings
     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 check_PROGRAMS = test-pfu test-uri
    18 if HAVE_LUA
    19   check_PROGRAMS += test-lua
    20 endif
    21 
    22 if INSTALL_TEST_PROGRAMS
    23   bin_PROGRAMS = $(check_PROGRAMS)
    24 endif
    25 
    26 librazorincludedir = $(includedir)/razor
    27 
    28 librazorinclude_HEADERS =              			\
    29 	razor.h
    30 
    31 librazor_la_SOURCES =                                	\
    32 	razor-internal.h				\
    33 	uri.h						\
    34 	razor.h						\
    35 	razor.c						\
    36 	root.c						\
    37 	dump.c						\
    38 	util.c						\
    39 	uri-io.c					\
    40 	uri.c						\
    41 	path.c						\
    42 	rpm.c						\
    43 	iterator.c					\
    44 	importer.c					\
    45 	merger.c					\
    46 	error.c						\
    47 	atomic.c					\
    48 	atomic-ktm.c					\
    49 	atomic-none.c					\
    50 	atomic-emulate.c				\
    51 	atomic-actions.c				\
    52 	transaction.c
    53 
    54 if HAVE_LUA
    55   librazor_la_SOURCES += lua.c
    56 endif
    57 
    58 librazor_la_LIBADD = $(LIBARCHIVE_LIBS) $(ZLIB_LIBS) types/libtypes.la \
    59 	$(LUA_LIBS) ../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
    60 librazor_la_LDFLAGS = -no-undefined -export-symbols-regex '^razor_' \
    61 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    62 
    63 test_pfu_SOURCES = test-pfu.c
    64 test_pfu_LDADD = path.lo uri.lo util.lo error.lo types/libtypes.la \
    65 	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
    66 
    67 TESTS = test-pfu
    68 
    69 test_uri_SOURCES = test-uri.c
    70 test_uri_CFLAGS = $(AM_CFLAGS)
    71 test_uri_LDADD = uri.lo util.lo path.lo error.lo types/libtypes.la \
    72 	$(LUA_LIBS) ../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
    73 
    74 TESTS += test-uri
    75 
    76 if HAVE_LUA
    77   test_lua_SOURCES = test-lua.c
    78   test_lua_LDADD = lua.lo uri.lo uri-io.lo util.lo path.lo error.lo \
    79   	types/libtypes.la $(LIBARCHIVE_LIBS) $(LUA_LIBS) ../gl/libgnu.la \
    80 	$(INTLLIBS) $(EXTRA_LIBS)
    81 
    82   TESTS += test-lua
    83 endif
    84 
    85 EXTRA_DIST = 			\
    86 	test.lua
    87 
    88 clean-local :
    89 	rm -f *~
    90