aboutsummaryrefslogtreecommitdiff
path: root/libexec/pppd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/pppd/Makefile')
-rw-r--r--libexec/pppd/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/libexec/pppd/Makefile b/libexec/pppd/Makefile
index eb2c0066c78c..196adb0b2d22 100644
--- a/libexec/pppd/Makefile
+++ b/libexec/pppd/Makefile
@@ -1,23 +1,25 @@
-#
-# $Id: Makefile,v 1.2 1993/10/14 11:18:55 rgrimes Exp $
-#
-PROG= pppd
-MAN8= pppd.8
-SRCS= main.c magic.c fsm.c lcp.c ipcp.c upap.c logwtmp.c chap.c md5.c
-MD5SRCS = md5driver.c
+# $Id: Makefile,v 1.3 1994/03/30 09:31:19 jkh Exp $
DEBUG_FLAGS = -DDEBUGFSM -DDEBUGLCP -DDEBUGIPCP -DDEBUGUPAP -DDEBUGCHAP \
-DDEBUGMAIN
+CFLAGS+= ${DEBUG_FLAGS}
+
+PROG= pppd
+SRCS= main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c \
+ auth.c options.c sys-bsd.c
+MAN8= pppd.8
+BINMODE=4555
+BINGRP= daemon
+BINOWN= root
-CFLAGS= -DKVMLIB -DPPP ${DEBUG_FLAGS}
+.if exists(/usr/lib/libcrypt.a)
+DPADD+= ${LIBCRYPT}
+LDADD+= -lcrypt
+.endif
DPADD+= ${LIBUTIL}
LDADD+= -lutil
-BINOWN= root
-BINGRP= daemon
-BINMODE= 4555
-
md5driver: md5.h md5.o md5driver.o
$(CC) $(CFLAGS) -o md5driver md5driver.o md5.o