#
#                       makefile for XShow
#
#       $ make -r [-w] [debug|noopt|d_lines] xshow xshoque
#

xshow   : xshow.exe
	write sys$output " -XShow- "

xshoque : xshoque.exe
	write sys$output " -XShoQue- "

xshofiles : xshofiles.exe
	write sys$output " -XShoFiles- "

debug   : fdebug        # compile/debug, link/debug
	if f$type(CC).nes."STRING" then  cc := cc
	cc := 'cc'/noopt/debug
	if f$type(MACRO).nes."STRING" then  macro := macro
	macro := 'macro'/debug
	if f$type(LINK).nes."STRING" then  link := link
	link := 'link'/debug/traceback

fdebug  :       # compile/debug, link normally
	on warning then exit $status.or.%x10000000
	if f$type(FORTRAN).nes."STRING" then  fortran := fortran
	fortran := 'fortran'/noopt/debug

noopt fnoopt :  # compile/nooptimize for quicker turnaround
	on warning then exit $status.or.%x10000000
	if f$type(FORTRAN).nes."STRING" then  fortran := fortran
	fortran := 'fortran'/noopt
	if f$type(CC).nes."STRING" then  cc := cc
	cc := 'cc'/noopt

d_lines :       # fortran/d_lines
	on warning then exit $status.or.%x10000000
	if f$type(FORTRAN).nes."STRING" then  fortran := fortran
	fortran := 'fortran'/d_lines

analysis sca :  # compile/analysis
	if f$type(FORTRAN).nes."STRING" then  fortran := fortran
	fortran := 'fortran'/analys
	if f$type(CC).nes."STRING" then  cc := cc
	cc := 'cc'/analys

xshow.exe : xshow.obj xshow1.obj xshow2.obj xshow_dcl.obj xshocpu.obj   \
	    dynamic.obj format.obj
	write sys$$output "  Linking ""XShow"" "
	link XShow.Obj,XShow1,XShow2,XShow_Dcl,XShoCpu,Dynamic.Obj,Format.Obj

xshoque.exe : xshoque.obj xshoque1.obj xshoque2.obj xshoque3.obj        \
	      dynamic.obj format.obj netwrkmsg.obj                      \
	      xshoque.f xshoque_def.f
	write sys$$output "  Linking ""XShoQue"" "
	link XShoQue.Obj,XShoQue1,XShoQue2,XShoQue3,-
		Dynamic.Obj,Format.Obj,NetwrkMsg.Obj

xshofiles.exe : xshofiles.obj xshofiles1.obj xshofiles2.obj             \
		dynamic.obj format.obj                                  \
		xshofiles.f
	write sys$$output "  Linking ""XShoFiles"" "
	link XShoFiles.Obj,XShoFiles1,XShoFiles2,Dynamic.Obj,Format.Obj, -
		sys$input:/options
		sys$share:VaxCRtl/share         $

*.obj  : *.for
	write sys$$output "  Compiling ""$*.For"" "
	fortran $*.For

xshofiles1.obj : xshofiles1.c
	write sys$$output "  Compiling ""XShoFiles1.C"" "
	cc XShoFiles1.C
xshofiles2.obj : xshofiles2.c
	write sys$$output "  Compiling ""XShoFiles2.C"" "
	cc XShoFiles2.C

xshow_dcl.obj : xshow_dcl.mar
	write sys$$output "  Assembling ""XShow_Dcl.Mar"" "
	macro XShow_Dcl.Mar
xshocpu.obj : xshocpu.mar
	write sys$$output "  Assembling ""XShoCpu.Mar"" "
	macro XShoCpu.Mar

netwrkmsg.obj :         # create indirect message module (for LAT queue status)
	write sys$$output "  Building ""NetwrkMsg"" "
	message/object=[]NetwrkMsg/file=NetwrkMsg nl:NetwrkMsg

xshoque.obj xshoque1.obj xshoque2.obj xshoque3.obj : xshoque.f xshoque_def.f

#
