home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e065 / 2.ddi / UIO_MSC.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-08-28  |  1.5 KB  |  47 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:       Microsoft C (5.x or greater)                    *
  7. rem *                                    *
  8. rem *********************************************************************
  9. rem *
  10. rem *  use:   uio_msc  "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 line to point to where the Microsoft C
  18. rem *     Libraries are on your system. ---
  19. rem *
  20. set INCLUDE=c:\c.500\include
  21. set LIB=c:\c.500\lib
  22. set TMP=c:\c.500\tmp
  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 *    /AL    - use large memory model (required)
  35. rem *
  36. if NOT EXIST uio_if_i.obj cl -DIBM -DNW2 /c /AL uio_if_i.c
  37. if NOT EXIST uio_if_d.obj cl -DIBM -DNW2 /c /AL uio_if_d.c
  38. if NOT EXIST uio_reqs.obj cl -DIBM -DNW2 /c /AL uio_reqs.c
  39. if NOT EXIST uio_tran.obj cl -DIBM -DNW2 /c /AL uio_tran.c
  40. cl -DIBM -DNW2 /c /AL %USRC%.c
  41. cl /AL %USRC%.obj uio_if_i.obj uio_if_d.obj uio_reqs.obj uio_tran.obj uio_386.obj
  42. goto Done
  43. :BadRq
  44. echo "%USRC%.c" does not exist!
  45. :Done
  46. echo on
  47.