src/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Mon Jan 12 18:53:02 2009 +0000 (2009-01-12)
changeset 346 765b72a613b2
parent 335 636f120d1b5e
child 351 48b0adfe3059
permissions -rw-r--r--
Cope with the non-atomic behaviour of rename on MS-Windows
and add some error checking to razor_set_commit.
rhughes@241
     1
## Process this file with automake to produce Makefile.in
rhughes@241
     2
rhughes@241
     3
INCLUDES = \
rhughes@241
     4
	$(CURL_CFLAGS) \
rhughes@241
     5
	$(EXPAT_CFLAGS) \
rhughes@241
     6
	$(RPM_CFLAGS) \
ali@332
     7
	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
rhughes@241
     8
	-I$(top_builddir)/src -I$(top_srcdir)/src \
rhughes@241
     9
	-I$(top_srcdir)/librazor \
rhughes@241
    10
	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
rhughes@241
    11
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
rhughes@241
    12
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
rhughes@241
    13
	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
rhughes@241
    14
	-DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \
rhughes@241
    15
	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\"
rhughes@241
    16
krh@265
    17
bin_PROGRAMS = razor
krh@265
    18
noinst_PROGRAMS = rpm
jbowes@284
    19
check_PROGRAMS = test-driver
rhughes@241
    20
ali@320
    21
razor_SOURCES = main.c import-yum.c
ali@320
    22
if HAVE_RPMLIB
ali@320
    23
razor_SOURCES += import-rpmdb.c
ali@320
    24
endif
ali@335
    25
razor_LDADD = $(RPM_LIBS) $(EXPAT_LIBS) $(CURL_LIBS) $(top_builddir)/librazor/librazor.la $(top_builddir)/gl/libgnu.la $(EXTRA_LIBS)
rhughes@241
    26
rhughes@241
    27
rpm_SOURCES = rpm.c
ali@335
    28
rpm_LDADD = $(top_builddir)/librazor/librazor.la $(EXTRA_LIBS)
rhughes@241
    29
jbowes@284
    30
test_driver_SOURCES = test-driver.c
ali@335
    31
test_driver_LDADD = $(EXPAT_LIBS) $(top_builddir)/librazor/librazor.la $(EXTRA_LIBS)
jbowes@284
    32
jbowes@284
    33
TESTS = test-driver
jbowes@284
    34
ali@343
    35
EXTRA_DIST = 			\
ali@343
    36
	test.xml
ali@343
    37
rhughes@241
    38
clean-local :
rhughes@241
    39
	rm -f *~
rhughes@241
    40