xref: /freebsd/secure/Makefile (revision 38f0b757fd84d17d0fc24739a7cda160c4516d81)
197d92980SPeter Wemm# $FreeBSD$
2107fc7e3SGarrett Wollman
3e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
4e1fe3dbaSRuslan Ermilov
5*38f0b757SJulio MerinoSUBDIR= lib libexec ${_tests} usr.bin usr.sbin
6*38f0b757SJulio Merino
7*38f0b757SJulio Merino.if ${MK_TESTS} != "no"
8*38f0b757SJulio Merino_tests=	tests
9*38f0b757SJulio Merino.endif
10107fc7e3SGarrett Wollman
11640e686cSRuslan Ermilov# These are the programs which depend on crypto, but not Kerberos.
12a1cd6de6SMarcel MoolenaarSPROGS=	lib/libfetch lib/libpam lib/libradius lib/libtelnet	\
13a1cd6de6SMarcel Moolenaar	bin/ed libexec/telnetd usr.bin/fetch usr.bin/telnet	\
147022a9ebSEdward Tomasz Napierala	usr.sbin/pkg_install usr.sbin/ppp usr.sbin/tcpdump/tcpdump
15e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
164afa3718SMark MurraySPROGS+=usr.sbin/sendmail
174afa3718SMark Murray.endif
1887bd8ab8SMark Murray
19640e686cSRuslan Ermilov# This target is used to rebuild these programs with crypto.
20640e686cSRuslan Ermilovsecure:
21640e686cSRuslan Ermilov.for entry in ${SPROGS}
22640e686cSRuslan Ermilov	cd ${.CURDIR}/../${entry}; \
23640e686cSRuslan Ermilov	${MAKE} cleandir; \
24640e686cSRuslan Ermilov	${MAKE} obj; \
25640e686cSRuslan Ermilov	${MAKE} depend; \
26640e686cSRuslan Ermilov	${MAKE} all; \
27640e686cSRuslan Ermilov	${MAKE} install
28640e686cSRuslan Ermilov.endfor
29640e686cSRuslan Ermilov
30640e686cSRuslan Ermilov# This target is used to rebuild these programs without crypto.
31640e686cSRuslan Ermilovinsecure:
32640e686cSRuslan Ermilov.for entry in ${SPROGS}
33640e686cSRuslan Ermilov	cd ${.CURDIR}/../${entry}; \
34040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no cleandir; \
35040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no obj; \
36040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no depend; \
37040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no all; \
38040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no install
39640e686cSRuslan Ermilov.endfor
40640e686cSRuslan Ermilov
4187bd8ab8SMark Murray.include <bsd.subdir.mk>
42