xref: /freebsd/secure/Makefile (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5SUBDIR= lib .WAIT \
6	libexec usr.bin usr.sbin
7SUBDIR_PARALLEL=
8
9SUBDIR.${MK_TESTS}+= tests
10
11SUBDIR.${MK_CAROOT}+= caroot
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/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:H}/${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:H}/${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