Makefile.in-os 486 B

1234567891011121314151617181920212223
  1. #
  2. # Copyright (c) 2013 No Face Press, LLC
  3. # License http://opensource.org/licenses/mit-license.php MIT License
  4. #
  5. # Override this using TARGET_OS=LINUX on the command line
  6. ifeq ($(TARGET_OS),)
  7. ifeq ($(OS),Windows_NT)
  8. TARGET_OS = WIN32
  9. else
  10. UNAME_S := $(shell uname -s)
  11. ifeq ($(UNAME_S),Linux)
  12. TARGET_OS = LINUX
  13. else
  14. ifeq ($(UNAME_S),Darwin)
  15. TARGET_OS = OSX
  16. else
  17. TARGET_OS = BSD
  18. endif
  19. endif
  20. endif
  21. endif