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.

16 lines
370B

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