os.mk 821 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # this file attempts to give basic OS independence to the make process.
  2. # It depends on GNU Make (or compatible)
  3. ifeq ($(OS),Windows_NT)
  4. # buiding on Windows currently untested
  5. RM = cmd //C del //Q //F
  6. RRM = cmd //C rmdir //Q //S
  7. REN = ren
  8. ZMAC = "C:\Program Files (x86)\zmac\zmac"
  9. SGR_COMMAND =
  10. SGR_OUTPUT =
  11. SGR_SIZE =
  12. SGR_RESET =
  13. STAT = cmd //C rem
  14. CECHO =
  15. else
  16. RRM = $(RM) -r
  17. REN = mv
  18. ZMAC = zmac
  19. SGR_COMMAND := `tput sgr0 ; tput setaf 7 ; tput setab 4 ; tput bold`
  20. SGR_OUTPUT := `tput sgr0 ; tput setaf 3 ; tput bold`
  21. SGR_SIZE := `tput setaf 2; tput bold`
  22. SGR_RESET := `tput sgr0`
  23. EMU = trs80gp
  24. CECHO = echo
  25. CECHON = printf "%s"
  26. UNAME_S := $(shell uname -s)
  27. ifeq ($(UNAME_S),Darwin)
  28. STAT = stat -f
  29. else
  30. STAT = stat -c
  31. endif
  32. ifeq ($(UNAME_S),Linux)
  33. endif
  34. endif