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