librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Apr 15 16:58:07 2016 +0100 (2016-04-15)
changeset 469 4aaa4b4b29e5
parent 455 df914f383f5c
child 475 008c75a5e08d
permissions -rw-r--r--
Added tag 0.6.2 for changeset 45e2bb06c88d
rhughes@241
     1
## Process this file with automake to produce Makefile.in
rhughes@241
     2
ali@364
     3
SUBDIRS = types
ali@364
     4
rhughes@241
     5
INCLUDES = \
ali@323
     6
	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
rhughes@241
     7
	-I$(top_builddir)/src -I$(top_srcdir)/src \
rhughes@241
     8
	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
rhughes@241
     9
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
rhughes@241
    10
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
rhughes@241
    11
	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
rhughes@241
    12
	-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
rhughes@241
    13
	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
rhughes@241
    14
	-DPACKAGE_LIB_DIR=\""$(libdir)"\"
rhughes@241
    15
rhughes@241
    16
lib_LTLIBRARIES = librazor.la
ali@455
    17
check_PROGRAMS = test-pfu
ali@352
    18
if HAVE_LUA
ali@455
    19
  check_PROGRAMS += test-lua
ali@455
    20
endif
ali@455
    21
ali@455
    22
if INSTALL_TEST_PROGRAMS
ali@455
    23
  bin_PROGRAMS = $(check_PROGRAMS)
ali@352
    24
endif
rhughes@241
    25
rhughes@241
    26
librazorincludedir = $(includedir)/razor
rhughes@241
    27
rhughes@241
    28
librazorinclude_HEADERS =              			\
rhughes@241
    29
	razor.h
rhughes@241
    30
rhughes@241
    31
librazor_la_SOURCES =                                	\
rhughes@241
    32
	razor-internal.h				\
rhughes@241
    33
	razor.h						\
rhughes@241
    34
	razor.c						\
krh@248
    35
	root.c						\
ali@457
    36
	dump.c						\
rhughes@241
    37
	util.c						\
ali@455
    38
	path.c						\
krh@248
    39
	rpm.c						\
krh@248
    40
	iterator.c					\
krh@248
    41
	importer.c					\
krh@248
    42
	merger.c					\
ali@423
    43
	error.c						\
ali@403
    44
	atomic.c					\
ali@416
    45
	atomic-ktm.c					\
ali@416
    46
	atomic-none.c					\
ali@416
    47
	atomic-emulate.c				\
ali@416
    48
	atomic-actions.c				\
krh@248
    49
	transaction.c
rhughes@241
    50
ali@352
    51
if HAVE_LUA
ali@352
    52
  librazor_la_SOURCES += lua.c
ali@352
    53
endif
ali@352
    54
ali@364
    55
librazor_la_LIBADD = $(ZLIB_LIBS) types/libtypes.la $(LUA_LIBS) \
ali@453
    56
	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
ali@454
    57
librazor_la_LDFLAGS = -no-undefined -export-symbols-regex '^razor_' \
ali@381
    58
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
ali@352
    59
ali@455
    60
test_pfu_SOURCES = test-pfu.c
ali@455
    61
test_pfu_LDADD = path.lo util.lo error.lo types/libtypes.la \
ali@455
    62
	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
ali@455
    63
ali@455
    64
TESTS = test-pfu
ali@455
    65
ali@352
    66
if HAVE_LUA
ali@352
    67
  test_lua_SOURCES = test-lua.c
ali@424
    68
  test_lua_LDADD = lua.lo util.lo error.lo types/libtypes.la $(LUA_LIBS) \
ali@398
    69
	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
ali@352
    70
ali@455
    71
  TESTS += test-lua
ali@352
    72
endif
ali@352
    73
ali@352
    74
EXTRA_DIST = 			\
ali@352
    75
	test.lua
rhughes@241
    76
rhughes@241
    77
clean-local :
rhughes@241
    78
	rm -f *~
rhughes@241
    79