home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e065 / 2.ddi / UIO_ZTC.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-08-28  |  1.7 KB  |  49 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:       Zortech C                    *
  7. rem *                                    *
  8. rem *********************************************************************
  9. rem *
  10. rem *  use:   uio_ztc  "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 * --- Change the following lines to point to where the Zortech C
  18. rem *     Files are on your system. ---
  19. rem *
  20. set TMP=C:
  21. set LIB=C:\ZORTECH\LIB
  22. set INCLUDE=C:\ZORTECH\INCLUDE
  23. rem *
  24. rem * --- Assemble the User I/O interrupt vector handling routines ---
  25. rem *
  26. rem *    Assembler:    Microsoft MASM 5.x or equivalent
  27. rem *
  28. rem *    /MX    - maintain case sensitivity for external / public variables
  29. rem *
  30. if NOT EXIST uio_386.obj    masm /MX uio_386,,;
  31. rem *
  32. rem * --- Compile and Link the C source code ---
  33. rem *
  34. rem *    -ml    - use large memory model (required)
  35. rem *   -b      - use large version of compiler
  36. rem *    -q    - run "quietly"
  37. rem *
  38. if NOT EXIST uio_if_i.obj ztc -DIBM -DNW2 -q -b -ml -c uio_if_i.c
  39. if NOT EXIST uio_if_d.obj ztc -DIBM -DNW2 -q -b -ml -c uio_if_d.c
  40. if NOT EXIST uio_reqs.obj ztc -DIBM -DNW2 -q -b -ml -c uio_reqs.c
  41. if NOT EXIST uio_tran.obj ztc -DIBM -DNW2 -q -b -ml -c uio_tran.c
  42. ztc -DIBM -DNW2 -q -b -ml -c %USRC%.c
  43. ztc -q -b -ml %USRC%.obj uio_if_i.obj uio_if_d.obj uio_reqs.obj uio_tran.obj uio_386.obj
  44. goto Done
  45. :BadRq
  46. echo "%USRC%.c" does not exist!
  47. :Done
  48. echo on
  49.