home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e065 / 2.ddi / UIO_TCC.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-08-28  |  1.5 KB  |  42 lines

  1. echo off
  2. rem *********************************************************************
  3. rem *                                    *
  4. rem *   Create a User I/O program using release 4.0 User I/O functions  *
  5. rem *                                                                   *
  6. rem *   compiler:       Turbo C                        *
  7. rem *                                    *
  8. rem *********************************************************************
  9. rem *
  10. rem *  use:   uio_tcc  "filename" (do not add .c extension)
  11. rem *
  12. set USRC=
  13. if     "%1" == "" set USRC=userio
  14. if NOT "%1" == "" set USRC=%1
  15. if NOT exist %USRC%.c goto BadRq
  16. rem *
  17. rem *
  18. rem * --- Assembler the User I/O interrupt vector handling routines ---
  19. rem *
  20. rem *   Assembler:      Microsoft MASM 5.x or equivalent
  21. rem *
  22. rem *    /MX    - maintain case sensitivity for external / public variables
  23. rem *
  24. if NOT EXIST uio_386.obj    masm /MX uio_386,,;
  25. rem *
  26. rem * --- Compile and Link the C source code ---
  27. rem *
  28. rem *    -mh    - use large memory model (required)
  29. rem *    -a    - align data (except bytes) on word boundaries
  30. rem *
  31. if NOT EXIST uio_if_i.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_if_i.c
  32. if NOT EXIST uio_if_d.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_if_d.c
  33. if NOT EXIST uio_reqs.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_reqs.c
  34. if NOT EXIST uio_tran.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_tran.c
  35. tcc -DIBM -DNW2 -mh -a -c %USRC%.c
  36. tcc -mh -a %USRC%.obj uio_if_i.obj uio_if_d.obj uio_reqs.obj uio_tran.obj uio_386.obj
  37. goto Done
  38. :BadRq
  39. echo "%USRC%.c" does not exist!
  40. :Done
  41. echo on
  42.