From: markus schnalke Date: Fri, 28 Nov 2014 10:05:17 +0000 (+0100) Subject: Added more include directories to fix building in another directory. X-Git-Tag: mmh-0.2-RC1~89 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=2dfc2b7e8d543372cd1a66a3d7dc02f7f5e40b7d;p=mmh 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). --- 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@