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: Zortech C *
- rem * *
- rem *********************************************************************
- rem *
- rem * use: uioc_ztc "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 lines to point to where the Zortech C
- rem * Files are on your system. ---
- rem *
- set TMP=C:
- set LIB=C:\ZORTECH\LIB
- set INCLUDE=C:\ZORTECH\INCLUDE
- 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 * -ml - use large memory model (required)
- rem * -b - use large version of compiler
- rem * -q - run "quietly"
- rem *
- if NOT EXIST uio_comp.obj ztc -DIBM -DNW2 -q -b -ml -c uio_comp.c
- if NOT EXIST uio_if_i.obj ztc -DIBM -DNW2 -q -b -ml -c uio_if_i.c
- if NOT EXIST uio_if_d.obj ztc -DIBM -DNW2 -q -b -ml -c uio_if_d.c
- if NOT EXIST uio_reqs.obj ztc -DIBM -DNW2 -q -b -ml -c uio_reqs.c
- if NOT EXIST uio_tran.obj ztc -DIBM -DNW2 -q -b -ml -c uio_tran.c
- ztc -DIBM -DNW2 -q -b -ml -c %USRC%.c
- 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
- goto Done
- :BadRq
- echo "%USRC%.c" does not exist!
- :Done
- echo on
-