From 97f28e94894dfb3e66d4924d194fc2d3d6fbacb8 Mon Sep 17 00:00:00 2001 From: ru Date: Sun, 18 Jan 2004 07:44:53 +0000 Subject: Added two utility targets "secure" and "insecure", analogous to "kerberize" and "dekerberize" in kerberos5/Makefile. These can be used to recompile bits with optional crypto support with and without crypto, respectively. Reviewed by: markm --- secure/Makefile | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'secure') diff --git a/secure/Makefile b/secure/Makefile index 68ce656..7261780 100644 --- a/secure/Makefile +++ b/secure/Makefile @@ -2,7 +2,7 @@ SUBDIR= lib libexec usr.bin usr.sbin -# These are programs which depend on crypto, but not Kerberos. +# These are the programs which depend on crypto, but not Kerberos. SPROGS= bin/ed usr.sbin/ppp usr.sbin/pppd usr.sbin/tcpdump/tcpdump \ lib/libfetch usr.bin/fetch usr.sbin/pkg_install \ lib/libpam \ @@ -11,4 +11,26 @@ SPROGS= bin/ed usr.sbin/ppp usr.sbin/pppd usr.sbin/tcpdump/tcpdump \ SPROGS+=usr.sbin/sendmail .endif +# This target is used to rebuild these programs with crypto. +secure: +.for entry in ${SPROGS} + cd ${.CURDIR}/../${entry}; \ + ${MAKE} cleandir; \ + ${MAKE} obj; \ + ${MAKE} depend; \ + ${MAKE} all; \ + ${MAKE} install +.endfor + +# This target is used to rebuild these programs without crypto. +insecure: +.for entry in ${SPROGS} + cd ${.CURDIR}/../${entry}; \ + ${MAKE} -DNOCRYPT cleandir; \ + ${MAKE} -DNOCRYPT obj; \ + ${MAKE} -DNOCRYPT depend; \ + ${MAKE} -DNOCRYPT all; \ + ${MAKE} -DNOCRYPT install +.endfor + .include -- cgit v1.1