xref: /freebsd/secure/Makefile (revision 076ad2f836d5f49dc1375f1677335a48fe0d4b82)
1# $FreeBSD$
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
13# These are the programs which depend on crypto, but not Kerberos.
14SPROGS=	lib/libfetch lib/libpam lib/libradius lib/libtelnet	\
15	bin/ed libexec/telnetd usr.bin/fetch usr.bin/telnet	\
16	usr.sbin/pkg_install usr.sbin/ppp usr.sbin/tcpdump/tcpdump
17.if ${MK_SENDMAIL} != "no"
18SPROGS+=usr.sbin/sendmail
19.endif
20
21# This target is used to rebuild these programs with crypto.
22secure: .MAKE .PHONY
23.for entry in ${SPROGS}
24	cd ${.CURDIR}/../${entry}; \
25	${MAKE} cleandir; \
26	${MAKE} obj; \
27	${MAKE} all; \
28	${MAKE} install
29.endfor
30
31# This target is used to rebuild these programs without crypto.
32insecure: .MAKE .PHONY
33.for entry in ${SPROGS}
34	cd ${.CURDIR}/../${entry}; \
35	${MAKE} MK_CRYPT=no cleandir; \
36	${MAKE} MK_CRYPT=no obj; \
37	${MAKE} MK_CRYPT=no all; \
38	${MAKE} MK_CRYPT=no install
39.endfor
40
41.include <bsd.subdir.mk>
42