home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem *********************************************************************
- rem * *
- rem * Create a User I/O program which is compatible with pre - 4.0 *
- rem * User I/O functions *
- rem * *
- rem * compiler: Microsoft C (5.x or greater) *
- rem * *
- rem *********************************************************************
- rem *
- rem * use: uioc_msc "filename" (do not add .c extension)
- rem *
- set USRC=
- if "%1" == "" set USRC=stockio
- if NOT "%1" == "" set USRC=%1
- if NOT exist %USRC%.c goto BadRq
- rem *
- rem * --- Change the following line to point to where the Microsoft C
- rem * Libraries are on your system. ---
- rem *
- set INCLUDE=c:\c.500\include
- set LIB=c:\c.500\lib
- set TMP=c:\c.500\tmp
- rem *
- rem * --- Assemble the user I/O interrupt vector handling routines ---
- rem *
- rem * Assembler: Microsoft MASM 5.x or equivalent
- rem *
- rem * /MX - maintain case sensitivity for external / public variables
- rem *
- if NOT EXIST uio_386.obj masm /MX uio_386,,;
- rem *
- rem * --- Compile and Link the C source code ---
- rem *
- rem * /AL - use large memory model (required)
- rem *
- if NOT EXIST uio_comp.obj cl -DIBM -DNW2 /c /AL uio_comp.c
- if NOT EXIST uio_if_i.obj cl -DIBM -DNW2 /c /AL uio_if_i.c
- if NOT EXIST uio_if_d.obj cl -DIBM -DNW2 /c /AL uio_if_d.c
- if NOT EXIST uio_reqs.obj cl -DIBM -DNW2 /c /AL uio_reqs.c
- if NOT EXIST uio_tran.obj cl -DIBM -DNW2 /c /AL uio_tran.c
- cl -DIBM -DNW2 /c /AL %USRC%.c
- cl /AL %USRC%.obj uio_comp.obj uio_if_i.obj uio_if_d.obj uio_reqs.obj uio_tran.obj uio_386.obj
- goto Done
- :BadRq
- echo "%USRC%.c" does not exist!
- :Done
- echo on
-