. MX/JCL - Controls flow of C compilation - 07/01/86
//if -C&-A&-L
//set C
//set A
//set L
//end
//if -N
//. ERROR: Must specify "N=progname"
//quit
//end
//if -D
//assign D=1
//end
//if -T
//assign T=1
//end
//if C
. Preprocess #N#/CCC:#D# to #N#/TOK:#T#
mcp #N#:#D# +o=:#T#
. Compile #N#/TOK:#T# to #N#/ASM:#T#
mc1 #N#:#T#
mc2 #N#:#T# +o=:#T#
//end
//if O
//assign EXT=OPT
. Optimize #N#/ASM:#T# to #N#/OPT:#T#
mcopt #N#/ASM:#T#
//else
//assign EXT=ASM
//end
//if A
. Assemble #N#/#EXT#:#T# to #N#/REL:#T#
//if X
//if LIST
mras mc +i=#N#/#EXT#:#T# +o=#N#:#T# -nm-ne-nc-we
//else
mras mc +i=#N#/#EXT#:#T# +o=#N#:#T# -nl
//end
//else
//if LIST
mras #N#/#EXT#:#T# +o=#N#:#T# -nm-ne-nc-we
//else
mras #N#/#EXT#:#T# +o=#N#:#T# -nl
//end
//end
//if l
mlink -a=y,#N#:#T#-n=:#D#-e
//end
//if K
remove #N#/TOK:#T#
remove #N#/ASM:#T#
//if l
remove #N#/REL:#T#
//end
//if O
remove #N#/OPT:#T#
//end
//end
//end
. Completed operation
//exit
