1# $FreeBSD: stable/11/secure/Makefile 357082 2020-01-24 15:29:33Z kevans $
2
3.include <src.opts.mk>
4
5SUBDIR= lib .WAIT \
6	libexec ${_tests} usr.bin usr.sbin
7SUBDIR_PARALLEL=
8
9.if ${MK_TESTS} != "no"
10_tests=	tests
11.endif
12
13SUBDIR.${MK_CAROOT}+= caroot
14
15# These are the programs which depend on crypto, but not Kerberos.
16SPROGS=	lib/libfetch lib/libpam lib/libradius lib/libtelnet	\
17	bin/ed libexec/telnetd usr.bin/fetch usr.bin/telnet	\
18	usr.sbin/pkg_install usr.sbin/ppp usr.sbin/tcpdump/tcpdump
19.if ${MK_SENDMAIL} != "no"
20SPROGS+=usr.sbin/sendmail
21.endif
22
23# This target is used to rebuild these programs with crypto.
24secure: .MAKE .PHONY
25.for entry in ${SPROGS}
26	cd ${.CURDIR:H}/${entry}; \
27	${MAKE} cleandir; \
28	${MAKE} obj; \
29	${MAKE} all; \
30	${MAKE} install
31.endfor
32
33# This target is used to rebuild these programs without crypto.
34insecure: .MAKE .PHONY
35.for entry in ${SPROGS}
36	cd ${.CURDIR:H}/${entry}; \
37	${MAKE} MK_CRYPT=no cleandir; \
38	${MAKE} MK_CRYPT=no obj; \
39	${MAKE} MK_CRYPT=no all; \
40	${MAKE} MK_CRYPT=no install
41.endfor
42
43.include <bsd.subdir.mk>
44