xref: /freebsd/secure/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1c6063d0dSWarner Losh.include <src.opts.mk>
2e1fe3dbaSRuslan Ermilov
3aa92269eSBryan DrewerySUBDIR= lib .WAIT \
44b330699SEnji Cooper	libexec usr.bin usr.sbin
5aa92269eSBryan DrewerySUBDIR_PARALLEL=
638f0b757SJulio Merino
74b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
8107fc7e3SGarrett Wollman
9*f27f39dbSKyle EvansSUBDIR.${MK_CAROOT}+= caroot
10*f27f39dbSKyle Evans
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	\
147a9e3b16SEitan Adler	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.
2060e03c60SBryan Drewerysecure: .MAKE .PHONY
21640e686cSRuslan Ermilov.for entry in ${SPROGS}
22b71fb1a4SEnji Cooper	cd ${.CURDIR:H}/${entry}; \
23640e686cSRuslan Ermilov	${MAKE} cleandir; \
24640e686cSRuslan Ermilov	${MAKE} obj; \
25640e686cSRuslan Ermilov	${MAKE} all; \
26640e686cSRuslan Ermilov	${MAKE} install
27640e686cSRuslan Ermilov.endfor
28640e686cSRuslan Ermilov
29640e686cSRuslan Ermilov# This target is used to rebuild these programs without crypto.
3060e03c60SBryan Dreweryinsecure: .MAKE .PHONY
31640e686cSRuslan Ermilov.for entry in ${SPROGS}
32b71fb1a4SEnji Cooper	cd ${.CURDIR:H}/${entry}; \
33040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no cleandir; \
34040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no obj; \
35040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no all; \
36040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no install
37640e686cSRuslan Ermilov.endfor
38640e686cSRuslan Ermilov
3987bd8ab8SMark Murray.include <bsd.subdir.mk>
40