 $ eod
 $ write out "CFLAGS=", ccopt
 $ write out "LOPTS=", lopts
+$ if f$search("x11vms:xvmsutils.olb") .nes. ""
+$ then
+$     write out "all : example.exe minigzip.exe libz.olb"
+$ else
+$     write out "all : example.exe libz.olb"
+$ endif
 $ copy sys$input: out
 $ deck
-
-all : example.exe minigzip.exe libz.olb
         @ write sys$output " Example applications available"
 
 libz.olb : libz.olb($(OBJS))

$MAP_END:
$     close/nolog aopt
$     close/nolog bopt
$     open/append libopt 'p2' 
$     open/read aopt a.opt 
$     open/read bopt b.opt 
$ALOOP:
$     read/end=aloop_end aopt line
$     write libopt line

$   'make'
$  endif
$!
$! Create shareable image
$!
$ gosub crea_olist
$ write sys$output "Creating libzshr.exe"
$ call map_2_shopt 'mapfile' 'optfile'
$ LINK_'lopts'/SHARE=libzshr.exe modules.opt/opt,'optfile'/opt
$ write sys$output "Zlib build completed"
$ delete/nolog tmp.opt;*
$ exit
