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: Turbo C *
- rem * *
- rem *********************************************************************
- rem *
- rem * use: uioc_tcc "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 *
- 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 * -mh - use large memory model (required)
- rem * -a - align data (except bytes) on word boundaries
- rem *
- if NOT EXIST uio_comp.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_comp.c
- if NOT EXIST uio_if_i.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_if_i.c
- if NOT EXIST uio_if_d.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_if_d.c
- if NOT EXIST uio_reqs.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_reqs.c
- if NOT EXIST uio_tran.obj tcc -DIBM -DNW2 -Ic:\tc\include -Lc:\tc\lib -mh -a -c uio_tran.c
- tcc -DIBM -DNW2 -mh -a -c %USRC%.c
- tcc -mh -a %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
-