home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / cwt2.zip / COMPILE.MSC < prev    next >
Text File  |  1989-10-05  |  768b  |  21 lines

  1. REM parameter is program name to be compiled, linked and run
  2. REM format of entry is "compile program"
  3. REM Note that the ".c" suffix is omitted
  4. if NOT EXIST \qc2\marietta\%1.c GOTO END
  5. copy \qc2\marietta\%1.c program.c
  6. bin\qcl /c /Iinclude /W2 /AM program.c
  7. if EXIST lib\mlibce.lib GOTO LINK1
  8. if EXIST lib\mlibc7.lib GOTO LINK2
  9. bin\link program,,NUL,lib\mc_wndw+lib\mc_ndx+lib\MLIBC+lib\LIBH /NOI /NOD /ST:10000
  10. GOTO RUN1
  11. :LINK1
  12. bin\link program,,NUL,lib\mc_wndw+lib\mc_ndx+lib\MLIBCE /NOI /NOD /ST:10000
  13. GOTO RUN1
  14. :LINK2
  15. bin\link program,,NUL,lib\mc_wndw+lib\mc_ndx+lib\MLIBC7 /NOI /NOD /ST:10000
  16. GOTO RUN1
  17. :RUN1
  18. PAUSE examine compile for errors, then press any key
  19. program
  20. :END
  21.