vorelang programming language
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.
 
 
 
 

44 lines
748 B

  1. CC ?= cc
  2. all: stage1
  3. stage0:
  4. git clone --depth 1 --quiet https://gitdab.com/vorelang/vc
  5. ${CC} -std=gnu11 -w -o stage0 vc/v.c -lm
  6. @echo "Vore stage0 has been built."
  7. stage1: stage0 compiler/
  8. ./stage0 -o stage1 compiler
  9. ln -fs stage1 v
  10. @echo "Vore stage1 has been built."
  11. stage2: compiler/
  12. ./stage1 -o stage2 compiler/
  13. ln -fs stage2 v
  14. @echo "Vore stage2 has been built."
  15. v.c: stage1 compiler/
  16. ./stage1 -o v.c compiler/
  17. ./stage1 -os windows -o v_win.c compiler/
  18. clang-format -i v.c
  19. clang-format -i v_win.c
  20. @echo "NOTE: move v.c and v_win.c to your vc repository"
  21. test: stage0
  22. ./v test v
  23. symlink: v
  24. ln -sf `pwd`/v ${PREFIX}/bin/v
  25. cleanvc:
  26. rm -rf vc
  27. rm -f stage0
  28. clean:
  29. rm -f stage1
  30. rm -f v
  31. clean2:
  32. rm -f stage2
  33. rm -f v2