cgame.bat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. rem make sure we have a safe environement
  2. set LIBRARY=
  3. set INCLUDE=
  4. mkdir vm
  5. cd vm
  6. set cc=lcc -DQ3_VM -DCGAME -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I..\..\game -I..\..\ui %1
  7. %cc% ../../game/bg_misc.c
  8. @if errorlevel 1 goto quit
  9. %cc% ../../game/bg_pmove.c
  10. @if errorlevel 1 goto quit
  11. %cc% ../../game/bg_slidemove.c
  12. @if errorlevel 1 goto quit
  13. %cc% ../../game/bg_lib.c
  14. @if errorlevel 1 goto quit
  15. %cc% ../../game/q_math.c
  16. @if errorlevel 1 goto quit
  17. %cc% ../../game/q_shared.c
  18. @if errorlevel 1 goto quit
  19. %cc% ../cg_consolecmds.c
  20. @if errorlevel 1 goto quit
  21. %cc% ../cg_draw.c
  22. @if errorlevel 1 goto quit
  23. %cc% ../cg_drawtools.c
  24. @if errorlevel 1 goto quit
  25. %cc% ../cg_effects.c
  26. @if errorlevel 1 goto quit
  27. %cc% ../cg_ents.c
  28. @if errorlevel 1 goto quit
  29. %cc% ../cg_event.c
  30. @if errorlevel 1 goto quit
  31. %cc% ../cg_info.c
  32. @if errorlevel 1 goto quit
  33. %cc% ../cg_localents.c
  34. @if errorlevel 1 goto quit
  35. %cc% ../cg_main.c
  36. @if errorlevel 1 goto quit
  37. %cc% ../cg_marks.c
  38. @if errorlevel 1 goto quit
  39. %cc% ../cg_players.c
  40. @if errorlevel 1 goto quit
  41. %cc% ../cg_playerstate.c
  42. @if errorlevel 1 goto quit
  43. %cc% ../cg_predict.c
  44. @if errorlevel 1 goto quit
  45. %cc% ../cg_scoreboard.c
  46. @if errorlevel 1 goto quit
  47. %cc% ../cg_servercmds.c
  48. @if errorlevel 1 goto quit
  49. %cc% ../cg_snapshot.c
  50. @if errorlevel 1 goto quit
  51. %cc% ../cg_view.c
  52. @if errorlevel 1 goto quit
  53. %cc% ../cg_weapons.c
  54. @if errorlevel 1 goto quit
  55. q3asm -f ../cgame
  56. :quit
  57. cd ..