From ccf9ad6d879cec4ca7a9620ebe28a53b4568b5d4 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 14 Dec 2009 09:22:36 +0100 Subject: Fix compilation outside of source directory Configure script can be invoked outside of source directory, which allows to compile sources without spoiling the source directory with compilation artifacts (like .o files). This patch tries to fix our Makefiles to allow this to work. You can test it in current GIT checkout (in the root dir): # mkdir build; cd build; ../configure; make As result, you should see all binary files in the 'build' directory. Signed-off-by: Jan Safranek Signed-off-by: Dhaval Giani --- src/daemon/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index feeeb3a..f3100ed 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -4,7 +4,7 @@ if WITH_DAEMON sbin_PROGRAMS = cgrulesengd cgrulesengd_SOURCES = cgrulesengd.c cgrulesengd.h -cgrulesengd_LDADD = $(top_srcdir)/src/.libs/libcgroup.la -lrt -cgrulesengd_LDFLAGS = -L$(top_srcdir)/src/.libs +cgrulesengd_LDADD = $(top_builddir)/src/.libs/libcgroup.la -lrt +cgrulesengd_LDFLAGS = -L$(top_builddir)/src/.libs endif -- cgit