Makefile 788 B

1234567891011121314151617181920212223
  1. -include ../mconfig
  2. -include version.conf
  3. all: ../mconfig includes/mconfig.h
  4. ../mconfig:
  5. @echo "*** No mconfig, please run make from top level"
  6. @false
  7. includes/mconfig.h: ../mconfig tools/mconfig-gen.cc version.conf
  8. $(MAKE) -C tools mconfig-gen
  9. ./tools/mconfig-gen SBINDIR=$(SBINDIR) SYSCONTROLSOCKET=$(SYSCONTROLSOCKET) \
  10. SHUTDOWN_PREFIX=$(SHUTDOWN_PREFIX) VERSION=$(VERSION) \
  11. DEFAULT_AUTO_RESTART=$(DEFAULT_AUTO_RESTART) \
  12. DEFAULT_START_TIMEOUT=$(DEFAULT_START_TIMEOUT) \
  13. DEFAULT_STOP_TIMEOUT=$(DEFAULT_STOP_TIMEOUT) \
  14. $(if $(SUPPORT_CGROUPS),SUPPORT_CGROUPS=$(SUPPORT_CGROUPS),) \
  15. $(if $(USE_UTMPX),USE_UTMPX=$(USE_UTMPX),) \
  16. $(if $(USE_INITGROUPS),USE_INITGROUPS=$(USE_INITGROUPS),) > includes/mconfig.h
  17. clean:
  18. rm -f includes/mconfig.h
  19. $(MAKE) -C tools clean