1) The top-level, zotnet, and mts Makefiles pass CPPFLAGS down to
their subdirectories, but the lower-level Makefiles ignore it. Passing
it on is good because it lets the builder specify extra CPPFLAGS for
the whole build. Patch included below.
2) libdir is for libraries. Support binaries belong in libexecdir.
(Most OSes don't actually make the distinction between the two
directories, but some do, and it's nice to have third-party software
play along. The autoconf info file supports this distinction.)
3) Irix make sucks. If I edit config.h to change POPSERVICE to "kpop",
and then run make, it will *always* then decide it needs to rebuild
config.h from config.h.in, and end up undoing my change. If I change
it again, it will rebuild it again.
(The problem is that it decides it needs to rebuild config.h.in
because it's older than stamp-h.in But the rule doesn't end up
actually changing config.h.in, so when the rule for stamp-h is
checked, it should notice that stamp-h is still newer than
config.h.in. But in Irixland, make remembers that it "rebuilt"
config.h.in and assumes the file was modified, so it thinks
config.h.in is newer than stamp-h and so it reruns config.status.)
This could be fixed by making sure that config.h.in always has a later
timestamp than stamp-h.in in the distributed tarfiles. Or, you could
just put a note in the MACHINES file telling Irix users to use gmake.
-- Dan
diff -cr nmh-1.0/mts/sendmail/Makefile.in.orig nmh-1.0/mts/sendmail/Makefile.in
*** nmh-1.0/mts/sendmail/Makefile.in.orig Fri May 8 16:52:02 1998
--- nmh-1.0/mts/sendmail/Makefile.in Wed Feb 10 19:28:32 1999
***************
*** 25,31 ****
TSORT = @TSORT@
RANLIB = @RANLIB@
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
--- 25,31 ----
TSORT = @TSORT@
RANLIB = @RANLIB@
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
diff -cr nmh-1.0/mts/smtp/Makefile.in.orig nmh-1.0/mts/smtp/Makefile.in
*** nmh-1.0/mts/smtp/Makefile.in.orig Fri May 8 16:51:35 1998
--- nmh-1.0/mts/smtp/Makefile.in Wed Feb 10 19:28:40 1999
***************
*** 25,31 ****
TSORT = @TSORT@
RANLIB = @RANLIB@
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
--- 25,31 ----
TSORT = @TSORT@
RANLIB = @RANLIB@
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
diff -cr nmh-1.0/sbr/Makefile.in.orig nmh-1.0/sbr/Makefile.in
*** nmh-1.0/sbr/Makefile.in.orig Thu Dec 10 15:36:49 1998
--- nmh-1.0/sbr/Makefile.in Wed Feb 10 19:27:24 1999
***************
*** 22,28 ****
LIBOBJS = @LIBOBJS@
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
--- 22,28 ----
LIBOBJS = @LIBOBJS@
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
diff -cr nmh-1.0/uip/Makefile.in.orig nmh-1.0/uip/Makefile.in
*** nmh-1.0/uip/Makefile.in.orig Sat Feb 6 16:44:09 1999
--- nmh-1.0/uip/Makefile.in Wed Feb 10 19:29:13 1999
***************
*** 34,40 ****
LEXLIB = @LEXLIB@
POPLIB = @POPLIB@
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
LN = ln
--- 34,40 ----
LEXLIB = @LEXLIB@
POPLIB = @POPLIB@
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
LN = ln
diff -cr nmh-1.0/zotnet/bboards/Makefile.in.orig nmh-1.0/zotnet/bboards/Makefile.in
*** nmh-1.0/zotnet/bboards/Makefile.in.orig Mon Jan 6 03:52:21 1997
--- nmh-1.0/zotnet/bboards/Makefile.in Wed Feb 10 19:28:17 1999
***************
*** 15,21 ****
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
--- 15,21 ----
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
diff -cr nmh-1.0/zotnet/mf/Makefile.in.orig nmh-1.0/zotnet/mf/Makefile.in
*** nmh-1.0/zotnet/mf/Makefile.in.orig Mon Jan 6 03:52:42 1997
--- nmh-1.0/zotnet/mf/Makefile.in Wed Feb 10 19:28:07 1999
***************
*** 15,21 ****
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
--- 15,21 ----
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
diff -cr nmh-1.0/zotnet/mts/Makefile.in.orig nmh-1.0/zotnet/mts/Makefile.in
*** nmh-1.0/zotnet/mts/Makefile.in.orig Sat Aug 22 19:39:55 1998
--- nmh-1.0/zotnet/mts/Makefile.in Wed Feb 10 19:27:50 1999
***************
*** 27,34 ****
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir) $(KRB4_INCLUDES) $(HESIOD_INCLUDES)
CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' -DMAILSPOOL='"$(mailspool)"'
-DSENDMAILPATH='"$(sendmailpath)"'
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
! COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
SED = sed
--- 27,34 ----
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir) $(KRB4_INCLUDES) $(HESIOD_INCLUDES)
CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' -DMAILSPOOL='"$(mailspool)"'
-DSENDMAILPATH='"$(sendmailpath)"'
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
! COMPILE2 = $(CC) -c $(CPPFLAGS) $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
SED = sed
diff -cr nmh-1.0/zotnet/tws/Makefile.in.orig nmh-1.0/zotnet/tws/Makefile.in
*** nmh-1.0/zotnet/tws/Makefile.in.orig Wed Jun 4 17:45:01 1997
--- nmh-1.0/zotnet/tws/Makefile.in Wed Feb 10 19:27:59 1999
***************
*** 15,21 ****
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
AWK = @AWK@
# LEX = @LEX@
--- 15,21 ----
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
AWK = @AWK@
# LEX = @LEX@