Makefile.in 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ###############################
  2. # Makefile for NRPE
  3. #
  4. # Last Modified: 03-09-2007
  5. ###############################
  6. # Source code directories
  7. SRC_BASE=./src/
  8. SRC_INCLUDE=./include/
  9. CC=@CC@
  10. CFLAGS=@CFLAGS@ @DEFS@
  11. LDFLAGS=@LDFLAGS@ @LIBS@
  12. prefix=@prefix@
  13. exec_prefix=@exec_prefix@
  14. CFGDIR=@sysconfdir@
  15. BINDIR=@bindir@
  16. SBINDIR=@sbindir@
  17. LIBEXECDIR=@libexecdir@
  18. INSTALL=@INSTALL@
  19. NAGIOS_INSTALL_OPTS=@NAGIOS_INSTALL_OPTS@
  20. NRPE_INSTALL_OPTS=@NRPE_INSTALL_OPTS@
  21. INIT_DIR=@init_dir@
  22. INIT_OPTS=-o root -g root
  23. all:
  24. cd $(SRC_BASE); $(MAKE) ; cd ..
  25. @echo ""
  26. @echo "*** Compile finished ***"
  27. @echo ""
  28. @echo "If the NRPE daemon and client compiled without any errors, you"
  29. @echo "can continue with installation. The NRPE daemon and client"
  30. @echo "binaries are located in the src/ subdirectory."
  31. @echo ""
  32. @echo " ** If this is your monitoring host **"
  33. @echo ""
  34. @echo " - Copy the check_nrpe client to the directory that"
  35. @echo " contains your Nagios plugins."
  36. @echo " - Create a command definition in your Nagios config"
  37. @echo " file for the NRPE client. See the README file for"
  38. @echo " more info on doing this."
  39. @echo ""
  40. @echo " ** If this host will be running the NRPE daemon **"
  41. @echo ""
  42. @echo " - Copy the nrpe daemon to /usr/sbin, /usr/local/nagios"
  43. @echo " or wherever you feel it fits best."
  44. @echo " - Copy the sample nrpe.cfg config file to /etc,"
  45. @echo " /usr/local/nagios or wherever you feel it fits best."
  46. @echo " - Modify the /etc/services file and configure NRPE to"
  47. @echo " run under inetd, xinetd, or as a standalone daemon."
  48. @echo " See the README file for more info on doing this."
  49. @echo ""
  50. nrpe:
  51. cd $(SRC_BASE); $(MAKE) ; cd ..
  52. check_nrpe:
  53. cd $(SRC_BASE); $(MAKE) ; cd ..
  54. install-plugin:
  55. cd $(SRC_BASE) && $(MAKE) $@
  56. install-daemon:
  57. cd $(SRC_BASE) && $(MAKE) $@
  58. install:
  59. cd $(SRC_BASE) && $(MAKE) $@
  60. install-xinetd:
  61. $(INSTALL) -m 644 sample-config/nrpe-xinetd /etc/xinetd.d/nrpe
  62. install-daemon-config:
  63. $(INSTALL) -m 644 sample-config/nrpe.xinetd /etc/xinetd.d/nrpe
  64. clean:
  65. cd $(SRC_BASE); $(MAKE) $@ ; cd ..
  66. rm -f core
  67. rm -f *~ */*~
  68. distclean: clean
  69. cd $(SRC_BASE); $(MAKE) $@ ; cd ..
  70. rm -f config.log config.status config.cache nrpe.cfg nrpe.xinetd subst $(SRC_INCLUDE)/config.h init-script init-script.debian init-script.freebsd init-script.suse
  71. rm -f sample-config/*.cfg sample-config/*.xinetd
  72. rm -f Makefile
  73. devclean: distclean