From: andrew chen <[email protected]>

For out of source tree build, realtime_config.h is created under the
top_builddir. Add it into the include path or you will get a missing
file issue.

Signed-off-by: Andrew Chen <[email protected]>
---
 ltp-full-20101031/testcases/realtime/config.mk    |    1 +
 ltp-full-20101031/testcases/realtime/lib/Makefile |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ltp-full-20101031/testcases/realtime/config.mk 
b/ltp-full-20101031/testcases/realtime/config.mk
index ddcf4f1..179a01f 100644
--- a/ltp-full-20101031/testcases/realtime/config.mk
+++ b/ltp-full-20101031/testcases/realtime/config.mk
@@ -31,6 +31,7 @@ realtime_builddir     := 
$(abs_top_builddir)/$(realtime_reldir)
 realtime_srcdir                := $(abs_top_srcdir)/$(realtime_reldir)
 
 CPPFLAGS               += -I$(realtime_srcdir)/include
+CPPFLAGS               += -I$(realtime_builddir)/include
 CFLAGS                 += -D_GNU_SOURCE
 LDLIBS                 += -lrealtime -lpthread -lrt -lm
 LDFLAGS                        += -L$(realtime_builddir)/lib
diff --git a/ltp-full-20101031/testcases/realtime/lib/Makefile 
b/ltp-full-20101031/testcases/realtime/lib/Makefile
index f6b9ad4..fbbb873 100644
--- a/ltp-full-20101031/testcases/realtime/lib/Makefile
+++ b/ltp-full-20101031/testcases/realtime/lib/Makefile
@@ -23,8 +23,7 @@
 top_srcdir             ?= ../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
-
-CPPFLAGS               += -I$(abs_srcdir)/../include
+include $(abs_srcdir)/../config.mk
 
 CFLAGS                 += -D_GNU_SOURCE
 
-- 
1.6.5


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to