例:コマンド ファイルを使用した場所の設定

次に示すコマンド ファイルでは、次のプロジェクト ファイルの場所を構成します。

  • アセンブラーは、すべてのアセンブラー ソース コード ファイルを \mlclib ディレクトリから読み取ります。
  • アセンブラーは、すべてのマクロとコピーファイルをディレクトリ \maclib および \copylib で検索します。
  • リンカー入力ファイル .LIN\linlib から取得されます。
  • .BAL ファイルなどの出力ファイルは \worklib に書き込まれます。
  • オブジェクト ファイルは \loadlib に書き込まれます。
  • リスティングは \listing に書き込まれます。
rem *--------------------------------------------------------------------------
rem * Tell the assembler where to find all input files:
rem *
rem * MLC's from SYSIN
rem * MAC's and CPY's from SYSLIB
rem * LIN files from SYSLIN
rem * OBJ files are both input (by the linker) and output (by the assembler)
rem *     so OBJ file locations are set by SYSLIN
rem *
set SYSIN=.\mlclib
set SYSLIB=.\maclib;.\copylib
set SYSLIN=.\linlib
rem *--------------------------------------------------------------------------
rem * Tell the assembler where to write all output files.
rem *
rem * BAL/IDF/IDX files are output to SYSWORK if specified
rem * LISTING files go to SYSLIST
rem * 390 files go to SYSLMOD
rem *
set SYSWORK=.\WORKLIB
set SYSLIST=.\LISTING
set SYSLMOD=.\loadlib
rem *
rem *  Now try an assembly and a link
rem *  Note the use of the BAL assembler option to get the
rem *  assembler to produce a TEST.BAL file.  The .BAL file
rem *  should go into the SYSWORK= directory
rem *
run mm370asm test.mlc bal noanim
run mf370lnk test noanim 
rem *