
#
# Copyright (C) 1984-1994 Micro Focus Ltd.
# Phase7 COBOL Build files
#
# @(#)mkfs2	3.2

# mkfs2 - utility to create a new Fileshare Version 2 executable with the 
# provision to include user modules or to enable it to be linked to a
# Fileshare client application making use of Fileshare's Single User Mode
# of Operation.

# invoke this utility with the user modules to be linked in as arguments,
# e.g. mkfs2 myprog.o
# Refer to the sections "Fileshare Server Rebuild Script" and "Fileshare
# Single User Mode of Operation" of the chapter "Fileshare Version 2" for
# more details.


if test $# -lt 0
then
	echo "usage: mkfs2 <prog.o> [[<prog.o>] .. ]"
	exit 1
fi

INCFLAGS="-I CCITCP -I CCINAMPU -m ixfile=ixfilev -m rlfile=rlfilev -m sqfile=sqfilev"

OBJS="fs.o fhrdrpwd.o fhxscomp.o fsinst.o fsinstpw.o fspthnam.o \
	fsrcvr.o fsserver.o fsseclog.o fssecopn.o"

cob -vxo fs ${INCFLAGS} ${OBJS} $*

