Makefile.Host 253 B

1234567891011121314
  1. all_hosts = Linux
  2. ifeq ($(OS),)
  3. SYS := $(shell gcc -dumpmachine)
  4. ifeq ($(SYS),x86_64-linux-gnu)
  5. OS := Linux
  6. else
  7. $(error Unsupported platform: $(SYS))
  8. endif
  9. else
  10. ifeq ($(findstring $(OS),$(all_hosts)),)
  11. $(error Unsupported platform: $(OS))
  12. endif
  13. endif