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 504B

1234567891011121314151617181920
  1. MACHINE = $(shell $(CC) -dumpmachine)
  2. ifneq (, $(findstring apple, $(MACHINE)))
  3. ARCH_MAC := 1
  4. ARCH := mac
  5. else ifneq (, $(findstring mingw, $(MACHINE)))
  6. ARCH_WIN := 1
  7. ARCH := win
  8. ifneq ( ,$(findstring x86_64, $(MACHINE)))
  9. ARCH_WIN_64 := 1
  10. BITS := 64
  11. else ifneq (, $(findstring i686, $(MACHINE)))
  12. ARCH_WIN_32 := 1
  13. BITS := 32
  14. endif
  15. else ifneq (, $(findstring linux, $(MACHINE)))
  16. ARCH_LIN := 1
  17. ARCH := lin
  18. else
  19. $(error Could not determine architecture. Try hacking around in arch.mk)
  20. endif