summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorJason Peel <jsyn@cvs.openbsd.org>2001-08-09 02:26:27 +0000
committerJason Peel <jsyn@cvs.openbsd.org>2001-08-09 02:26:27 +0000
commiteb6849bd9cf9dd43afd19b81307a639a2c4988f5 (patch)
tree342b4f90e049a5c70a872c7b5b74e063c28bfdf1 /usr.sbin/ppp
parentcd7ff4d11cc513cd3bf9cc03ae43734fae3e4421 (diff)
add m4 preprocessing based on enabled features; ok brian@, input
from todd@
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ppp/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ppp/Makefile b/usr.sbin/ppp/ppp/Makefile
index 3f2f449730f..f4f66d5619b 100644
--- a/usr.sbin/ppp/ppp/Makefile
+++ b/usr.sbin/ppp/ppp/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.20 2000/11/28 22:59:52 brian Exp $
+# $OpenBSD: Makefile,v 1.21 2001/08/09 02:26:26 jsyn Exp $
PROG= ppp
SRCS= alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c \
@@ -12,6 +12,7 @@ SRCS= alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c \
tty.c tun.c udp.c vjcomp.c
CFLAGS+=-Wall -DHAVE_DES -DNO_FW_PUNCH -DNOI4B -DNONETGRAPH
CFLAGS+=-DLOCALNAT -DLOCALRAD
+M4FLAGS=-DLOCALNAT -DLOCALRAD
LDADD+= -lcrypto -ldes -lutil -lz
DPADD+= ${LIBDES} ${LIBUTIL} ${LIBZ}
.if defined(NOSUID) || defined(PPP_NOSUID)
@@ -23,6 +24,11 @@ BINOWN= root
BINGRP= network
MAN= ppp.8
+.SUFFIXES: .8 .8.m4
+
+.8.m4.8:
+ m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
+
NOATM= /usr/include/netnatm required
.if defined(NOATM)
CFLAGS+=-DNOATM