2
0

make_old.cmd 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @echo off
  2. rem $id: make.cmd,v $
  3. rem
  4. rem ************************Make batchfile for OS/2****************************
  5. rem * Purpose: The makefile contains a lot of Unix commands. While it is *
  6. rem * possible to install for example a bash shell under OS/2 *
  7. rem * a batch file is much easier. *
  8. rem * *
  9. rem * Copyright (c) 1998-2000 by Daniel Mantione, developer of Free Pascal *
  10. rem ***************************************************************************
  11. goto %1
  12. :clean
  13. pushd
  14. \pp\rtl\
  15. del /s *.ppo *.so2 *.oo2 *.ppu *.s *.o *.pp1 *.s1 *.o1>&dev\nul
  16. popd
  17. del *.ppo *.so2 *.oo2 *.ppu *.s *.o *.pp1 *.s1 *.o1>&dev\nul
  18. goto eind
  19. :prtx
  20. pushd
  21. \pp\rtl\os2\
  22. iff not exist prt0.oo2 then
  23. as -o prt0.oo2 prt0.as
  24. endiff
  25. iff not exist prt1.oo2 then
  26. as -o prt1.oo2 prt1.as
  27. endiff
  28. iff not exist code2.oo2 then
  29. as -o code2.oo2 code2.as
  30. endiff
  31. iff not exist code3.oo2 then
  32. as -o code3.oo2 code3.as
  33. endiff
  34. popd
  35. goto eind
  36. :compiler
  37. call make prtx
  38. iff "%2"=="" then
  39. ppos2 pp.pas
  40. else
  41. %2 pp.pas
  42. endiff
  43. goto eind
  44. :remake
  45. call make clean
  46. call make compiler %2
  47. goto eind
  48. :cycle
  49. call make remake %2
  50. move pp.exe pp1.exe
  51. call make remake pp1.exe
  52. move pp.exe pp2.exe
  53. call make remake pp2.exe
  54. move pp.exe pp3.exe
  55. goto eind
  56. $log: make.cmd,v$
  57. :eind