Makefile 936 B

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