Fix conditional that had two &&'s so that make release
[dragonfly.git] / usr.sbin / pppd / Makefile
1 # $FreeBSD: src/usr.sbin/pppd/Makefile,v 1.19.2.2 2001/08/19 03:32:43 kris Exp $
2 # $DragonFly: src/usr.sbin/pppd/Makefile,v 1.4 2003/08/05 17:11:04 rob Exp $
3
4 CFLAGS+= -DHAVE_PATHS_H
5
6 PROG=   pppd
7 SRCS=   main.c magic.c fsm.c lcp.c ipcp.c ipxcp.c upap.c chap.c ccp.c \
8         demand.c auth.c options.c sys-bsd.c
9 MAN=    pppd.8
10 BINMODE=4550
11 BINOWN= root
12 BINGRP= dialer
13
14 # as per handbook policies section
15 MAINTAINER=     peter@freebsd.org
16
17 LDADD=  -lcrypt -lutil -lmd
18 DPADD=  ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
19
20 # Support SPX/IPX - not quite ready
21 #CFLAGS+=-DIPX_CHANGE
22 #SRCS+= ipxcp.c
23
24 # Callback Control Protocol
25 CFLAGS+=-DCBCP_SUPPORT
26 SRCS+=  cbcp.c
27
28 # Filter support
29 CFLAGS+=-DPPP_FILTER
30 LDADD+= -lpcap
31 DPADD+= ${LIBPCAP}
32
33 # MS-CHAP support.  Requires the DES library.
34 .if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT)  && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
35 DISTRIBUTION=crypto
36 CFLAGS+=-DCHAPMS
37 SRCS+=  chap_ms.c
38 LDADD+= -lcrypto
39 DPADD+= ${LIBCRYPTO}
40 .endif
41
42 .if defined(RELEASE_CRUNCH)
43 # We must create these objects because crunchgen will link them,
44 # and we don't want any unused symbols to spoil the final link.
45 SRCS+= chap_ms.c
46 chap_ms.o:
47         >null_${.PREFIX}.c
48         cc -c -o ${.TARGET} null_${.PREFIX}.c
49 .endif
50
51 .include <bsd.prog.mk>