librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu Oct 09 17:27:41 2014 +0100 (2014-10-09)
changeset 455 df914f383f5c
parent 454 56ff755c268c
child 457 51a084acef49
permissions -rw-r--r--
Support downloading from local repository even without libcurl

Using the --url option of the razor executable, it is possible
to specify a yum repository on the local machine (eg., on installation
media) and import from there, eg.,:

C> razor --url file:///d:/ import-yum

This will be handled by libcurl if available but if not, an internal
copy routine will be used.

Note that if Microsoft's KTM implementation of atomic transactions is
used, then the current directory must support atomic transactions
(also improve error messages for this, and other, cases).
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						\
rhughes@241
    36
	util.c						\
ali@455
    37
	path.c						\
krh@248
    38
	rpm.c						\
krh@248
    39
	iterator.c					\
krh@248
    40
	importer.c					\
krh@248
    41
	merger.c					\
ali@423
    42
	error.c						\
ali@403
    43
	atomic.c					\
ali@416
    44
	atomic-ktm.c					\
ali@416
    45
	atomic-none.c					\
ali@416
    46
	atomic-emulate.c				\
ali@416
    47
	atomic-actions.c				\
krh@248
    48
	transaction.c
rhughes@241
    49
ali@352
    50
if HAVE_LUA
ali@352
    51
  librazor_la_SOURCES += lua.c
ali@352
    52
endif
ali@352
    53
ali@364
    54
librazor_la_LIBADD = $(ZLIB_LIBS) types/libtypes.la $(LUA_LIBS) \
ali@453
    55
	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
ali@454
    56
librazor_la_LDFLAGS = -no-undefined -export-symbols-regex '^razor_' \
ali@381
    57
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
ali@352
    58
ali@455
    59
test_pfu_SOURCES = test-pfu.c
ali@455
    60
test_pfu_LDADD = path.lo util.lo error.lo types/libtypes.la \
ali@455
    61
	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
ali@455
    62
ali@455
    63
TESTS = test-pfu
ali@455
    64
ali@352
    65
if HAVE_LUA
ali@352
    66
  test_lua_SOURCES = test-lua.c
ali@424
    67
  test_lua_LDADD = lua.lo util.lo error.lo types/libtypes.la $(LUA_LIBS) \
ali@398
    68
	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
ali@352
    69
ali@455
    70
  TESTS += test-lua
ali@352
    71
endif
ali@352
    72
ali@352
    73
EXTRA_DIST = 			\
ali@352
    74
	test.lua
rhughes@241
    75
rhughes@241
    76
clean-local :
rhughes@241
    77
	rm -f *~
rhughes@241
    78