home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_200 / 243_01 / ccldos.cmd < prev    next >
OS/2 REXX Batch file  |  1990-05-14  |  782b  |  34 lines

  1. @rem name:    ccldos.cmd
  2. @rem purpose: Compile c program
  3. @echo off
  4. set prog=cpp1
  5. if exist %prog%.c goto doit
  6. echo Usage: %0 CPROGRAM
  7. echo CPROGRAM must have no extension
  8. echo CPROGRAM must exist in current directory
  9. goto exit
  10. :doit
  11. erase %prog%.lst
  12. erase %prog%.exe
  13. set include=c:\include2;c:\include2\sys
  14. set lib=c:\lib2
  15. set tmp=c:\tmp
  16. @echo on
  17. cl -c -AL -W2 cpp6.c
  18. cl -c -AL -W2 cpp5.c
  19. cl -c -AL -W2 cpp4.c
  20. cl -c -AL -W2 cpp3.c
  21. cl -c -AL -W2 cpp2.c
  22. cl -c -AL -W2 %prog%.c
  23. @REM link %prog%,/noi,%prog%,doscalls+llibce+os2, ;
  24. @REM link /st:4000 %prog%,/noi,%prog%,llibce+os2, ;
  25. link /st:4096 %prog%+cpp2+cpp3+cpp4+cpp5+cpp6,cpp /noi,cpp,llibce+os2, ;
  26. @echo off
  27. erase %prog%.lst
  28. erase %prog%.map
  29. set include=
  30. set lib=
  31. set tmp=
  32. erase %prog%.obj
  33. :exit
  34.