From 2dfc2b7e8d543372cd1a66a3d7dc02f7f5e40b7d Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Fri, 28 Nov 2014 11:05:17 +0100 Subject: [PATCH] Added more include directories to fix building in another directory. I discovered these problems when I tried to build from a git clone (which has no config.h in the source directory). --- config/Makefile.in | 3 ++- sbr/Makefile.in | 5 +++-- uip/Makefile.in | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/Makefile.in b/config/Makefile.in index 80eb409..4bdad8e 100644 --- a/config/Makefile.in +++ b/config/Makefile.in @@ -23,7 +23,8 @@ mailspool = @mailspool@ CC = @CC@ CFLAGS = @CFLAGS@ DEFS = @DEFS@ -INCLUDES = -I$(top_srcdir) @CPPFLAGS@ +# add include dir .. for config.h when building in different directory +INCLUDES = -I$(top_srcdir) -I.. @CPPFLAGS@ CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' \ -DSENDMAILPATH='"$(sendmailpath)"' \ -DMAILSPOOL='"$(mailspool)"' diff --git a/sbr/Makefile.in b/sbr/Makefile.in index 9539c0f..64ecb9e 100644 --- a/sbr/Makefile.in +++ b/sbr/Makefile.in @@ -17,8 +17,9 @@ etcdir = @sysconfdir@ CC = @CC@ CFLAGS = @CFLAGS@ DEFS = @DEFS@ -# add include dir . for sigmsg.h when building in different directory -INCLUDES = -I$(top_srcdir) -I. @CPPFLAGS@ +# add include dir . for sigmsg.h and .. for config.h when building +# in different directory +INCLUDES = -I$(top_srcdir) -I. -I.. @CPPFLAGS@ LEX = @LEX@ AWK = @AWK@ diff --git a/uip/Makefile.in b/uip/Makefile.in index bf23531..8fe7197 100644 --- a/uip/Makefile.in +++ b/uip/Makefile.in @@ -17,7 +17,8 @@ etcdir = @sysconfdir@ CC = @CC@ CFLAGS = @CFLAGS@ DEFS = @DEFS@ -INCLUDES = -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@ +# add include dir .. for config.h when building in different directory +INCLUDES = -I$(srcdir) -I$(top_srcdir) -I.. @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ -- 1.7.10.4