src/Makefile.am
author Richard Hughes <richard@hughsie.com>
Mon Jun 30 10:46:20 2008 +0100 (2008-06-30)
changeset 304 bf23ba00db03
parent 265 71b615b7c185
child 320 53e1185e2366
permissions -rw-r--r--
the vararg list must be terminated with zero else 64bit machines may crash

On 64 bit systems, the integer 0 is 32 bits and the pointer 0 is 64 bits.
The upper 32 bits will not be cleared and the loop will never terminate.
Also add the RAZOR_SENTINEL __attribute__ ((__sentinel__(0))) on GCC4
so we catch where we get this wrong automatically.

This also fixes the new search functionality from James which was missed
in the merge.
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 INCLUDES = \
     4 	$(CURL_CFLAGS) \
     5 	$(EXPAT_CFLAGS) \
     6 	$(RPM_CFLAGS) \
     7 	-I$(top_builddir)/src -I$(top_srcdir)/src \
     8 	-I$(top_srcdir)/librazor \
     9 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
    10 	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
    11 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
    12 	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
    13 	-DPACKAGE_LOCALSTATEDIR=\""$(localstatedir)"\" \
    14 	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\"
    15 
    16 bin_PROGRAMS = razor
    17 noinst_PROGRAMS = rpm
    18 check_PROGRAMS = test-driver
    19 
    20 razor_SOURCES = main.c import-rpmdb.c import-yum.c
    21 razor_LDADD = $(RPM_LIBS) $(EXPAT_LIBS) $(CURL_LIBS) $(top_builddir)/librazor/librazor.la
    22 
    23 rpm_SOURCES = rpm.c
    24 rpm_LDADD = $(top_builddir)/librazor/librazor.la
    25 
    26 test_driver_SOURCES = test-driver.c
    27 test_driver_LDADD = $(EXPAT_LIBS) $(top_builddir)/librazor/librazor.la
    28 
    29 TESTS = test-driver
    30 
    31 clean-local :
    32 	rm -f *~
    33