xref: /freebsd-14.2/secure/Makefile (revision d0b2dbfa)
1107fc7e3SGarrett Wollman
2c6063d0dSWarner Losh.include <src.opts.mk>
3e1fe3dbaSRuslan Ermilov
4aa92269eSBryan DrewerySUBDIR= lib .WAIT \
54b330699SEnji Cooper	libexec usr.bin usr.sbin
6aa92269eSBryan DrewerySUBDIR_PARALLEL=
738f0b757SJulio Merino
84b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
9107fc7e3SGarrett Wollman
10*f27f39dbSKyle EvansSUBDIR.${MK_CAROOT}+= caroot
11*f27f39dbSKyle Evans
12640e686cSRuslan Ermilov# These are the programs which depend on crypto, but not Kerberos.
13a1cd6de6SMarcel MoolenaarSPROGS=	lib/libfetch lib/libpam lib/libradius lib/libtelnet	\
14a1cd6de6SMarcel Moolenaar	bin/ed libexec/telnetd usr.bin/fetch usr.bin/telnet	\
157a9e3b16SEitan Adler	usr.sbin/ppp usr.sbin/tcpdump/tcpdump
16e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
174afa3718SMark MurraySPROGS+=usr.sbin/sendmail
184afa3718SMark Murray.endif
1987bd8ab8SMark Murray
20640e686cSRuslan Ermilov# This target is used to rebuild these programs with crypto.
2160e03c60SBryan Drewerysecure: .MAKE .PHONY
22640e686cSRuslan Ermilov.for entry in ${SPROGS}
23b71fb1a4SEnji Cooper	cd ${.CURDIR:H}/${entry}; \
24640e686cSRuslan Ermilov	${MAKE} cleandir; \
25640e686cSRuslan Ermilov	${MAKE} obj; \
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.
3160e03c60SBryan Dreweryinsecure: .MAKE .PHONY
32640e686cSRuslan Ermilov.for entry in ${SPROGS}
33b71fb1a4SEnji Cooper	cd ${.CURDIR:H}/${entry}; \
34040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no cleandir; \
35040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no obj; \
36040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no all; \
37040c0dc7SWarner Losh	${MAKE} MK_CRYPT=no install
38640e686cSRuslan Ermilov.endfor
39640e686cSRuslan Ermilov
4087bd8ab8SMark Murray.include <bsd.subdir.mk>
41