add Makefile.inc to use ../Makefile.inc, and cleanup subdir Makefiles
This commit is contained in:
parent
aa5b34a6f5
commit
eea5ba720b
7
usr.sbin/sendmail/Makefile.inc
Normal file
7
usr.sbin/sendmail/Makefile.inc
Normal file
@ -0,0 +1,7 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 1997/10/17 13:32:28 lukem Exp $
|
||||
|
||||
WARNS?= 0
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
@ -51,7 +51,7 @@ char **argv;
|
||||
{
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "o:")) != EOF) {
|
||||
while ((opt = getopt(argc, argv, "o:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'o':
|
||||
if (!freopen(optarg, "w", stdout)) {
|
||||
|
@ -220,7 +220,7 @@ main(argc, argv)
|
||||
#endif
|
||||
|
||||
from = NULL;
|
||||
while ((ch = getopt(argc, argv, "df:r:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "df:r:")) != -1)
|
||||
switch(ch) {
|
||||
case 'd': /* Backward compatible. */
|
||||
break;
|
||||
|
@ -4,5 +4,4 @@ PROG= mailstats
|
||||
MAN= mailstats.8
|
||||
CFLAGS+=-I${.CURDIR}/../src
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -73,7 +73,7 @@ main(argc, argv)
|
||||
cfile = _PATH_SENDMAILCF;
|
||||
sfile = NULL;
|
||||
mnames = TRUE;
|
||||
while ((ch = getopt(argc, argv, "C:f:o")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "C:f:o")) != -1)
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
|
@ -7,5 +7,4 @@ CFLAGS+=-I${.CURDIR}/../src -DNEWDB -DNOT_SENDMAIL
|
||||
SRCS= makemap.c safefile.c
|
||||
|
||||
.PATH: ${.CURDIR}/../src
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -152,7 +152,7 @@ main(argc, argv)
|
||||
#else
|
||||
#define OPTIONS "Ndforv"
|
||||
#endif
|
||||
while ((opt = getopt(argc, argv, OPTIONS)) != EOF)
|
||||
while ((opt = getopt(argc, argv, OPTIONS)) != -1)
|
||||
{
|
||||
switch (opt)
|
||||
{
|
||||
|
@ -4,5 +4,4 @@ PROG= praliases
|
||||
MAN= praliases.8
|
||||
CFLAGS+=-I${.CURDIR}/../src
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -67,7 +67,7 @@ main(argc, argv)
|
||||
#endif
|
||||
|
||||
filename = "/etc/aliases";
|
||||
while ((ch = getopt(argc, argv, "f:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "f:")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'f':
|
||||
filename = optarg;
|
||||
|
@ -6,5 +6,4 @@ MAN= smrsh.8
|
||||
CFLAGS+=-I${.CURDIR}/../src -DNDBM -DNEWDB
|
||||
CFLAGS+=-DCMDDIR=\"/usr/libexec/sm.bin\"
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user