src/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 453 1fd1d221092d
child 476 48e45439fd9a
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
rhughes@241
     3
INCLUDES = \
ali@352
     4
	$(LUA_CFLAGS) \
rhughes@241
     5
	$(CURL_CFLAGS) \
rhughes@241
     6
	$(EXPAT_CFLAGS) \
rhughes@241
     7
	$(RPM_CFLAGS) \
ali@332
     8
	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
rhughes@241
     9
	-I$(top_builddir)/src -I$(top_srcdir)/src \
ali@453
    10
	-I$(top_builddir)/librazor -I$(top_srcdir)/librazor \
rhughes@241
    11
	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
rhughes@241
    12
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
rhughes@241
    13
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
rhughes@241
    14
	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
rhughes@241
    15
	-DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \
rhughes@241
    16
	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\"
rhughes@241
    17
krh@265
    18
bin_PROGRAMS = razor
krh@265
    19
noinst_PROGRAMS = rpm
jbowes@284
    20
check_PROGRAMS = test-driver
rhughes@241
    21
ali@455
    22
if INSTALL_TEST_PROGRAMS
ali@455
    23
  bin_PROGRAMS = $(check_PROGRAMS)
ali@455
    24
  pkgdata_DATA = test.xml
ali@455
    25
endif
ali@455
    26
ali@320
    27
razor_SOURCES = main.c import-yum.c
ali@320
    28
if HAVE_RPMLIB
ali@320
    29
razor_SOURCES += import-rpmdb.c
ali@320
    30
endif
ali@429
    31
razor_LDADD = $(top_builddir)/librazor/librazor.la $(RPM_LIBS) $(EXPAT_LIBS) $(CURL_LIBS) $(LUA_LIBS) $(top_builddir)/gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
rhughes@241
    32
rhughes@241
    33
rpm_SOURCES = rpm.c
ali@429
    34
rpm_LDADD = $(top_builddir)/librazor/librazor.la $(LUA_LIBS) $(EXTRA_LIBS)
rhughes@241
    35
jbowes@284
    36
test_driver_SOURCES = test-driver.c
ali@429
    37
test_driver_LDADD = $(top_builddir)/librazor/librazor.la $(EXPAT_LIBS) $(EXTRA_LIBS)
jbowes@284
    38
jbowes@284
    39
TESTS = test-driver
ali@351
    40
XFAIL_TESTS = test-driver
jbowes@284
    41
ali@343
    42
EXTRA_DIST = 			\
ali@343
    43
	test.xml
ali@343
    44
rhughes@241
    45
clean-local :
rhughes@241
    46
	rm -f *~
rhughes@241
    47