Skip to contentSkip to conversation

fix Makefiles for out of source tree build

PATCH In review Andrew Chen 2 participants 2 messages May 4, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix Makefiles for out of source tree build

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.

---
 ltp-full-20101031/testcases/realtime/config.mk    |    1 +
 ltp-full-20101031/testcases/realtime/lib/Makefile |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
ltp-full-20101031/testcases/realtime/config.mk +1 -0
index ddcf4f1..179a01f 100644
@@ -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
ltp-full-20101031/testcases/realtime/lib/Makefile +1 -2
index f6b9ad4..fbbb873 100644
@@ -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
 
Signature · 13 lines
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
#1 lore raw
Quoted 7 lines · Andrew Chen

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.

Committed with small adjustments to comments -- thanks! -Garrett

------------------------------------------------------------------------------
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