2
0

Makefile 577 B

12345678910111213141516171819
  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),) > includes/mconfig.h
  13. clean:
  14. rm -f includes/mconfig.h
  15. $(MAKE) -C tools clean