Listing 6 A batch file for building TERM286.C with Microsoft C

rem MAKE-M.BAT
rem
rem
rem This batch file will build TERM286.C using the Phar Lap 286 DOS
rem Extender and Microsoft C. It builds the DLL first, then the
rem executable file for TERM286.EXE
rem
cl /G2s /Ox /AL /W4 /c real_isr.c
echo ; REAL_ISR.DEF -- linker module description file  >  real_isr.def
echo LIBRARY REAL_ISR                                  >> real_isr.def
echo EXETYPE DOS4                                      >> real_isr.def
echo DESCRIPTION 'REAL ISR FOR 8250 W/PHAR LAP 286'    >> real_isr.def
echo EXPORTS                                           >> real_isr.def
echo      _real_isr                                    >> real_isr.def
echo      _Port                                        >> real_isr.def
link /nod real_isr,real_isr.dll,,,real_isr.def
implib real_isr.lib real_isr.def
cl /G2s /AL /W4 /Lp /AL term286.c real_isr.lib