From 5f59f4bae83f89d8a95f4d1ed27c909be1df6861 Mon Sep 17 00:00:00 2001 From: legoater Date: Wed, 3 Sep 2008 09:44:36 +0000 Subject: [PATCH] fix Makefiles to compile objects in a directory different from the source. --- src/liblxc/Makefile.am | 4 +++- src/lxc/Makefile.am | 2 +- test/Makefile.am | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/liblxc/Makefile.am b/src/liblxc/Makefile.am index bb548d56c..a0c6ffb90 100644 --- a/src/liblxc/Makefile.am +++ b/src/liblxc/Makefile.am @@ -1,3 +1,5 @@ +INCLUDES= -I$(top_srcdir)/src + lib_LTLIBRARIES = liblxc.la pkginclude_HEADERS = \ lxc.h \ @@ -34,4 +36,4 @@ liblxc_la_SOURCES = \ rtnl.c rtnl.h \ genl.c genl.h -liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@ \ No newline at end of file +liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@ diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 259ae9d11..5a7c481f0 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -1,4 +1,4 @@ -INCLUDES= -I$(top_srcdir)/src/liblxc +INCLUDES= -I$(top_srcdir)/src/liblxc -I$(top_srcdir)/src bin_SCRIPTS = \ lxc-ps diff --git a/test/Makefile.am b/test/Makefile.am index 01b9866db..8fc922054 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,4 +1,4 @@ -INCLUDES= -I$(top_srcdir)/src/liblxc +INCLUDES= -I$(top_srcdir)/src/liblxc -I$(top_srcdir)/src noinst_PROGRAMS = \ tst_list \