From 2aed767bb7c5c4b33f02e2db704ee2d58955e697 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Mon, 4 Mar 2013 02:35:09 -0800 Subject: [PATCH] Re-write examples/Makefile.am a bit This gets the examples compiling again. --- .gitignore | 1 + examples/Makefile.am | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index c4bc2a0..575fd7c 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ Makefile.in /build-aux/ /m4/ /src/config.* +/doc/stamp-vti diff --git a/examples/Makefile.am b/examples/Makefile.am index 95cee62..cefc5a3 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,11 +1,5 @@ -noinst_PROGRAMS = hash_usage large_hash strings conf_example conf_example2 opt_example -LDADD = -L$(top_srcdir)/src -lcfu +noinst_PROGRAMS = hash_usage large_hash strings conf_example \ + conf_example2 opt_example -if DEBUG -AM_CFLAGS = -I$(top_srcdir)/src -DCFU_DEBUG=1 -else AM_CFLAGS = -I$(top_srcdir)/src -endif - -AM_LDFLAGS = -Xlinker -rpath -Xlinker $(top_src_dir)/src - +LDADD = $(top_builddir)/src/libcfu.a