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

  1. echo off
  2. rem *********************************************************************
  3. rem *                                    *
  4. rem *   Create a User I/O program which is compatible with pre - 4.0    *
  5. rem *    User I/O functions                        *
  6. rem *                                    *
  7. rem *    compiler:    Zortech C                    *
  8. rem *                                    *
  9. rem *********************************************************************
  10. rem *
  11. rem *  use:   uioc_ztc  "filename" (do not add .c extension)
  12. rem *
  13. set USRC=
  14. if     "%1" == "" set USRC=stockio
  15. if NOT "%1" == "" set USRC=%1
  16. if NOT exist %USRC%.c goto BadRq
  17. rem *
  18. rem * --- Change the following lines to point to where the Zortech C
  19. rem *     Files are on your system. ---
  20. rem *
  21. set TMP=C:
  22. set LIB=C:\ZORTECH\LIB
  23. set INCLUDE=C:\ZORTECH\INCLUDE
  24. rem *
  25. rem * --- Assemble the user I/O interrupt vector handling routines ---
  26. rem *
  27. rem *   Assembler:      Microsoft MASM 5.x or equivalent
  28. rem *
  29. rem *    /MX    - maintain case sensitivity for external / public variables
  30. rem *
  31. if NOT EXIST uio_386.obj    masm /MX uio_386,,;
  32. rem *
  33. rem * --- Compile and Link the C source code ---
  34. rem *
  35. rem *    -ml    - use large memory model (required)
  36. rem *   -b      - use large version of compiler
  37. rem *    -q    - run "quietly"
  38. rem *
  39. if NOT EXIST uio_comp.obj ztc -DIBM -DNW2 -q -b -ml -c uio_comp.c
  40. if NOT EXIST uio_if_i.obj ztc -DIBM -DNW2 -q -b -ml -c uio_if_i.c
  41. if NOT EXIST uio_if_d.obj ztc -DIBM -DNW2 -q -b -ml -c uio_if_d.c
  42. if NOT EXIST uio_reqs.obj ztc -DIBM -DNW2 -q -b -ml -c uio_reqs.c
  43. if NOT EXIST uio_tran.obj ztc -DIBM -DNW2 -q -b -ml -c uio_tran.c
  44. ztc -DIBM -DNW2 -q -b -ml -c %USRC%.c
  45. ztc -q -b -ml %USRC%.obj uio_comp.obj uio_if_i.obj uio_if_d.obj uio_reqs.obj uio_tran.obj uio_386.obj
  46. goto Done
  47. :BadRq
  48. echo "%USRC%.c" does not exist!
  49. :Done
  50. echo on
  51.