home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / tools / bgi_tool / build.bat < prev    next >
DOS Batch File  |  1989-05-30  |  777b  |  39 lines

  1. rem    Compile the C module
  2. rem
  3.  
  4. tcc -c -mt -N- -k- -f- debug.c
  5.  
  6. rem
  7. rem    Assemble the vector table file
  8. rem
  9.  
  10. tasm /ml debvect ;
  11.  
  12. rem
  13. rem    Link the files together, vector module 1st
  14. rem     change \c\lib\cs  in the statement below
  15.  
  16. tlink debvect+debug, debug, debug, \c\lib\cs /m ;
  17.  
  18. rem
  19. rem    Convert the .EXE file to a .COM file
  20. rem
  21.  
  22. exetobin debug.exe debug.bin
  23.  
  24. rem
  25. rem    Convert the .COM file to the .BGI file.  The syntax below
  26. rem    specifies the input file as DEBUG.BIN, the output file as
  27. rem    DEBUG.BGI, and the internal driver name as "DEBUG".
  28. rem
  29.  
  30. bh  debug.bin  debug.bgi  DEBUG
  31.  
  32. rem
  33. rem    Convert the driver to a register-able .OBJ file.
  34. rem
  35.  
  36. bgiobj      debug.bgi n_debug.obj _DEBUG_driver
  37. bgiobj /F debug.bgi f_debug.obj _DEBUG_driver_far
  38.  
  39.