kaem.run 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/bin/bash
  2. ## Copyright (C) 2019 Jeremiah Orians
  3. ## This file is part of Gnu Mes
  4. ##
  5. ## Gnu Mes is free software: you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation, either version 3 of the License, or
  8. ## (at your option) any later version.
  9. ##
  10. ## Gnu Mes is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU General Public License for more details.
  14. ##
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with Gnu Mes. If not, see <http://www.gnu.org/licenses/>.
  17. M2-Planet --debug --architecture amd64 \
  18. --bootstrap-mode \
  19. -f mes.h \
  20. -f ../M2-Planet/test/common_amd64/functions/file.c \
  21. -f ../M2-Planet/test/common_amd64/functions/exit.c \
  22. -f ../M2-Planet/test/common_amd64/functions/malloc.c \
  23. -f ../M2-Planet/functions/calloc.c \
  24. -f mes.c \
  25. -f mes_cell.c \
  26. -f mes_builtins.c \
  27. -f mes_eval.c \
  28. -f mes_print.c \
  29. -f mes_read.c \
  30. -f mes_tokenize.c \
  31. -f mes_vector.c \
  32. -f mes_list.c \
  33. -f mes_string.c \
  34. -f mes_keyword.c \
  35. -f mes_record.c \
  36. -f mes_init.c \
  37. -f mes_macro.c \
  38. -f mes_posix.c \
  39. -f functions/numerate_number.c \
  40. -f functions/match.c \
  41. -f functions/file_print.c \
  42. -f functions/in_set.c \
  43. -o bin/mes.M1
  44. blood-elf --64 -f bin/mes.M1 -o bin/mes-footer.M1
  45. M1 -f ../M2-Planet/test/common_amd64/amd64_defs.M1 \
  46. -f ../M2-Planet/test/common_amd64/libc-core.M1 \
  47. -f bin/mes.M1 \
  48. -f bin/mes-footer.M1 \
  49. --LittleEndian \
  50. --architecture amd64 \
  51. -o bin/mes.hex2
  52. hex2 -f ../M2-Planet/test/common_amd64/ELF-amd64-debug.hex2 \
  53. -f bin/mes.hex2 \
  54. --LittleEndian \
  55. --architecture amd64 \
  56. --BaseAddress 0x00600000 \
  57. -o bin/mes-m2 \
  58. --exec_enable