2
0

Makefile 995 B

1234567891011121314151617181920212223242526
  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 $(SUPPORT_CAPABILITIES),SUPPORT_CAPABILITIES=$(SUPPORT_CAPABILITIES),) \
  16. $(if $(SUPPORT_IOPRIO),SUPPORT_IOPRIO=$(SUPPORT_IOPRIO),) \
  17. $(if $(SUPPORT_OOM_ADJ),SUPPORT_OOM_ADJ=$(SUPPORT_OOM_ADJ),) \
  18. $(if $(USE_UTMPX),USE_UTMPX=$(USE_UTMPX),) \
  19. $(if $(USE_INITGROUPS),USE_INITGROUPS=$(USE_INITGROUPS),) > includes/mconfig.h
  20. clean:
  21. rm -f includes/mconfig.h
  22. $(MAKE) -C tools clean