home *** CD-ROM | disk | FTP | other *** search
- echo off
- if .%1 == . goto show_ins
-
- echo
- echo **** Compiling the .BBX
- echo
- masm %1 /DEXE_TYPE;
- if errorlevel 1 goto exit_m
- link /m %1,%1.bbx;
- if errorlevel 1 goto exit_m
-
- echo
- echo
- echo **** Compiling the C Object Module
- echo
- if .%2 == . goto c_same
- masm %1,%2c /DC_TYPE;
- if errorlevel 1 goto exit_m
- goto do_basic
- :c_same
- masm %1,%1c /DC_TYPE;
- if errorlevel 1 goto exit_m
-
- :do_basic
- echo
- echo
- echo **** Compiling the BASIC Object Module
- echo
- if .%2 == . goto bas_same
- masm %1,%2b /DBASIC_TYPE;
- if errorlevel 1 goto exit_m
- goto do_pas
- :bas_same
- masm %1,%1b /DBASIC_TYPE;
- if errorlevel 1 goto exit_m
-
- :do_pas
- echo
- echo
- echo **** Compiling the Turbo Pascal Object Module
- echo
- if .%2 == . goto pas_same
- masm %1,%2p /DTURBO_TYPE;
- goto do_tpc
- :pas_same
- masm %1,%1p /DTURBO_TYPE;
- if errorlevel 1 goto exit_m
- :do_tpc
- echo
- echo
- echo **** Compiling the Turbo Pascal .TPU Module
- echo
- tpc %1
- goto exit_m
-
- :show_ins
- echo Usage:
- echo M_BBX fname [, alternate_fname]
- echo fname = name of the .ASM, .BBX, .TPU
- echo if no alternate_fname, C = fnamec.OBJ, BASIC = fnameb.OBJ
- echo else C = alternate_fnamec.OBJ, BASIC = alternate_fnameb.OBJ
- :exit_m