home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / DAYFIELD.ZIP / BLD.CMD < prev    next >
OS/2 REXX Batch file  |  1989-07-24  |  1KB  |  64 lines

  1. @echo off
  2. SET NAME=DAYFIELD
  3. SET PROTO= 
  4. SET PROTOH=
  5. SET OPT=/Od
  6. SET CDBG=/Zi
  7. SET LDBG=/CO
  8.  
  9. if -%1- == -- goto make
  10. if %1 == ? goto help
  11.  
  12. :two
  13. if -%2- == -- goto make
  14. if %2   == COMPILE goto three
  15. if %2   == compile goto three
  16. set PROTO=/Zg
  17. set PROTOH=^> $*.h
  18.  
  19. :three
  20. if -%3- == -- goto make
  21. if %3   == MAKE goto four
  22. if %3   == make goto four
  23. touch *.c > nul
  24. touch *.asm > nul
  25.  
  26. :four
  27. if -%4- == -- goto make
  28. if %4   == DEBUG goto five
  29. if %4   == debug goto five
  30. set CDBG=
  31. set LDBG=
  32.  
  33. :five
  34. if -%5- == -- goto make
  35. if %5   == size  set OPT=/Os
  36. if %5   == SIZE  set OPT=/Os
  37. if %5   == speed set OPT=/Ot
  38. if %5   == SPEED set OPT=/Ot
  39. if %5   == MAX   set OPT=/Ox
  40. if %5   == max   set OPT=/Ox
  41.  
  42. :make
  43. make %name%
  44.  
  45. if -%1- == -- goto end
  46. if %1 == notell goto end
  47. if %1 == NOTELL goto end
  48.  
  49. if errorlevel 1 goto badpop 
  50. popup " %NAME% built sucessfully"
  51. goto end
  52.  
  53. :badpop
  54. popup "%NAME% had problems" 
  55. goto end
  56.  
  57. :help
  58. echo bld [notell] [compile] [make] [debug]   [speed] 
  59. echo     [tell]   [proto]   [full] [nodebug] [noopt]
  60. echo     [?]                                 [size]
  61. echo                                         [max]
  62.  
  63. :end
  64.