home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 329_01 / ccldos.cmd < prev    next >
OS/2 REXX Batch file  |  1988-12-09  |  649b  |  30 lines

  1. @rem name:    ccldos.cmd
  2. @rem purpose: Compile c program
  3. @echo off
  4. set prog1=egrep
  5. if exist %prog1%.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 %prog1%.lst
  12. erase %prog1%.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 regexp.c
  18. cl -c -AL -W2 regsub.c
  19. cl -c -AL -W2 regerror.c
  20. cl -c -AL -W2 %prog1%.c
  21. link /st:16384 %prog1%+regexp+regsub+regerror,/noi,%prog1%,llibce+os2, ;
  22. @echo off
  23. erase %prog1%.lst
  24. erase %prog1%.map
  25. set include=
  26. set lib=
  27. set tmp=
  28. erase %prog1%.obj
  29. :exit
  30.