Makefile.in 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ###############################
  2. # Makefile for NRPE
  3. #
  4. # Last Modified: 03-14-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 the installation or upgrade process."
  30. @echo ""
  31. @echo "Read the PDF documentation (NRPE.pdf) for information on the next"
  32. @echo "steps you should take to complete the installation or upgrade."
  33. @echo ""
  34. nrpe:
  35. cd $(SRC_BASE); $(MAKE) ; cd ..
  36. check_nrpe:
  37. cd $(SRC_BASE); $(MAKE) ; cd ..
  38. install-plugin:
  39. cd $(SRC_BASE) && $(MAKE) $@
  40. install-daemon:
  41. cd $(SRC_BASE) && $(MAKE) $@
  42. install:
  43. cd $(SRC_BASE) && $(MAKE) $@
  44. install-xinetd:
  45. $(INSTALL) -m 644 sample-config/nrpe.xinetd /etc/xinetd.d/nrpe
  46. install-daemon-config:
  47. $(INSTALL) -m 775 $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
  48. $(INSTALL) -m 644 $(NRPE_INSTALL_OPTS) sample-config/nrpe.cfg $(DESTDIR)$(CFGDIR)
  49. clean:
  50. cd $(SRC_BASE); $(MAKE) $@ ; cd ..
  51. rm -f core
  52. rm -f *~ */*~
  53. distclean: clean
  54. cd $(SRC_BASE); $(MAKE) $@ ; cd ..
  55. 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
  56. rm -f sample-config/*.cfg sample-config/*.xinetd
  57. rm -f Makefile
  58. devclean: distclean