Makefile 639 B

1234567891011121314151617181920
  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. $(if $(SUPPORT_CGROUPS),SUPPORT_CGROUPS=$(SUPPORT_CGROUPS),) \
  12. $(if $(USE_UTMPX),USE_UTMPX=$(USE_UTMPX),) \
  13. $(if $(USE_INITGROUPS),USE_INITGROUPS=$(USE_INITGROUPS),) > includes/mconfig.h
  14. clean:
  15. rm -f includes/mconfig.h
  16. $(MAKE) -C tools clean