home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 1.ddi / SUPP.LIF / 386CL.BAT next >
Encoding:
DOS Batch File  |  1992-07-06  |  1.7 KB  |  47 lines

  1. rem
  2. rem *-*-* 386CL.BAT *-*-*
  3. rem
  4. rem This submit file contains an example showing the compilation of one
  5. rem C module and its binding to create a program for execution on the
  6. rem iRMX III Operating System.
  7. rem
  8. rem Invocation:  386cl module
  9. rem
  10. rem Where: module - Is the pathname of the module to be compiled and bound.
  11. rem                 This name is assumed to have a '.c' suffix, however, do
  12. rem                 not include it in the pathname.
  13. rem
  14. rem Notes:
  15. rem - The module name will be the name of the executable program.
  16. rem - The ic386 libraries are installed in \intel\lib, and the include files
  17. rem   are installed in \intel\ic386\inc and specified with the searchinclude
  18. rem   control in this file.  Directories specified by the :include: environment
  19. rem   variable will also be searched for include and header files.
  20. rem - The floating point C libraries are used; non-floating point libraries
  21. rem   may be substituted instead.
  22. rem - The file 386cl.ltx is used as input to bnd386.  This file should be
  23. rem   located in the current default directory.
  24. rem - The make_map.bat file is used by this batch file to create a map file
  25. rem   after the program has been successfully created.
  26. rem - See the iC-86/286/386 Compiler User's Guide for DOS Systems for
  27. rem   examples of other binding techniques.
  28. rem
  29. rem ************************************************************************
  30. rem
  31.     ic386 %1.c searchinclude(\intel\ic386\inc) compact
  32.  
  33.     copy 386cl.ltx 386cl.ttx
  34.     echo object(%1) >> 386cl.ttx
  35.     bnd386 \intel\lib\cstrmx3c.obj, %1.obj,  & < 386cl.ttx
  36.     IF ERRORLEVEL 1 GOTO FAIL
  37.  
  38.     CALL make_map %1
  39.     ECHO Success
  40.     GOTO STOP
  41.  
  42. :FAIL
  43.     ECHO Failure
  44.  
  45. :STOP
  46.     del 386cl.ttx
  47.