xref: /freebsd/secure/Makefile (revision 1f4bcc459a76b7aa664f3fd557684cd0ba6da352)
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} depend; \
28	${MAKE} all; \
29	${MAKE} install
30.endfor
31
32# This target is used to rebuild these programs without crypto.
33insecure: .MAKE .PHONY
34.for entry in ${SPROGS}
35	cd ${.CURDIR}/../${entry}; \
36	${MAKE} MK_CRYPT=no cleandir; \
37	${MAKE} MK_CRYPT=no obj; \
38	${MAKE} MK_CRYPT=no depend; \
39	${MAKE} MK_CRYPT=no all; \
40	${MAKE} MK_CRYPT=no install
41.endfor
42
43.include <bsd.subdir.mk>
44