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

12345678910111213141516171819
  1. # Detect architecture if ARCH is not defined
  2. ifndef ARCH
  3. MACHINE = $(shell gcc -dumpmachine)
  4. ifneq (,$(findstring linux,$(MACHINE)))
  5. # Linux
  6. ARCH = lin
  7. else ifneq (,$(findstring apple,$(MACHINE)))
  8. # Mac
  9. ARCH = mac
  10. else ifneq (,$(findstring mingw,$(MACHINE)))
  11. # Windows
  12. ARCH = win
  13. else
  14. $(error Could not determine machine type. Try hacking around in arch.mk)
  15. endif
  16. endif