home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c003 / 1.ddi / DEMOS / CL.BAT next >
Encoding:
DOS Batch File  |  1987-02-02  |  1.1 KB  |  48 lines

  1. :cl.bat
  2. :
  3. :  This batch file will compile and link the specified source using
  4. :  MICROSOFT v4.0.
  5. :
  6. :  The compiler files are assumed to be in c:\ms
  7. :  The compiler libraries are assumed to be in c:\ms\s
  8. :  The C source file is assumed to be in the default directory on c:
  9. :  All of the .h files are assumed to be on d:
  10. :  The Windows for C library is assumed to be in c:\ms\s
  11. :  The object file will be placed on d:
  12. :
  13. :  You may have to modify this batch file to fit your situation
  14. :
  15. echo off
  16. if "%1" == "" goto ERROR
  17. :
  18. :   Compile the program
  19. :
  20. set INCLUDE=d:
  21. set LIB=c:\ms\s
  22. set TMP=d:
  23. echo Compiling %1
  24. msc %1, d:%1.obj  /DLINT_ARGS /AS /Zl;
  25. :
  26. :   Link the program
  27. :
  28. :  The object module is assumed to be on d:
  29. :  The executable file will be created on d:
  30. :
  31. :  Use the next line for floating point support
  32. :
  33. :link d:%1, d:%1, d:%1/map, wfcs + em + slibfp + slibc + libh
  34. :
  35. :  Otherwise use this line
  36. :
  37. link d:%1, d:%1, d:%1/map, wfcs + slibc + libh
  38. set INCLUDE=
  39. set LIB=
  40. set TMP=
  41. goto EXIT
  42. :
  43. :ERROR
  44. :
  45. echo Correct usage:  cl [filename - no extension]
  46. :
  47. :EXIT
  48.