You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arch.mk 549B

123456789101112131415161718192021
  1. MACHINE = $(shell $(CC) -dumpmachine)
  2. ifneq (,$(findstring x86_64-,$(MACHINE)))
  3. ARCH_X64 := 1
  4. ARCH_NAME := x64
  5. else
  6. $(error Could not determine CPU architecture of $(MACHINE). Try hacking around in arch.mk)
  7. endif
  8. ifneq (,$(findstring -darwin,$(MACHINE)))
  9. ARCH_MAC := 1
  10. ARCH_OS_NAME := mac
  11. else ifneq (,$(findstring -mingw32,$(MACHINE)))
  12. ARCH_WIN := 1
  13. ARCH_OS_NAME := win
  14. else ifneq (,$(findstring -linux,$(MACHINE)))
  15. ARCH_LIN := 1
  16. ARCH_OS_NAME := lin
  17. else
  18. $(error Could not determine OS of $(MACHINE). Try hacking around in arch.mk)
  19. endif