/* 
 * Imakefile for the FX (file exchange) intermediate level
 *
 * $Author: susan $
 * $Source: /afs/cs.cmu.edu/project/atk-dist/auis-6.3/contrib/mit/fxlib/lib/RCS/Imakefile,v $
 * $Header: /afs/cs.cmu.edu/project/atk-dist/auis-6.3/contrib/mit/fxlib/lib/RCS/Imakefile,v 1.3 1993/05/17 17:05:34 susan Exp $
 *
 * Copyright (c) 1989, Massachusetts Institute of Technology
 *
 */

AnsiCC()

/* Client-server protocol, error tables kept in separate directories */
PROTDIR=../protocol
ETSDIR=../ets

FXCLSRC = _fx_lengthen.c	fx_create.c		fx_move.c \
	_fx_rpc_errno.c		fx_delete.c		fx_open.c \
	_fx_shorten.c		fx_destroy.c		fx_retrieve.c \
	_fx_unshorten.c		fx_directory.c		fx_retrieve_file.c \
	fx_acl_add.c		fx_directory_destroy.c	fx_send.c \
	fx_acl_del.c		fx_host_list.c		fx_send_file.c \
	fx_acl_list.c		fx_host_list_destroy.c	fx_stat.c \
	fx_acl_list_destroy.c	fx_init.c		fx_stat_destroy.c \
	fx_connect.c		fx_list.c		libacl.c \
	fx_copy.c		fx_list_destroy.c	strcasecmp.c \
	${ETSDIR}/fxcl_err.c	${ETSDIR}/fxserver_err.c \
	${ETSDIR}/krb_err.c	${ETSDIR}/rpc_err.c \
	${PROTDIR}/fx_prot_clnt.c ${PROTDIR}/fx_prot_xdr.c

FXCLOBJ = _fx_lengthen.o	fx_create.o		fx_move.o \
	_fx_rpc_errno.o		fx_delete.o		fx_open.o \
	_fx_shorten.o		fx_destroy.o		fx_retrieve.o \
	_fx_unshorten.o		fx_directory.o		fx_retrieve_file.o \
	fx_acl_add.o		fx_directory_destroy.o	fx_send.o \
	fx_acl_del.o		fx_host_list.o		fx_send_file.o \
	fx_acl_list.o		fx_host_list_destroy.o	fx_stat.o \
	fx_acl_list_destroy.o	fx_init.o		fx_stat_destroy.o \
	fx_connect.o		fx_list.o		libacl.o \
	fx_copy.o		fx_list_destroy.o	strcasecmp.o \
	${ETSDIR}/fxcl_err.o	${ETSDIR}/fxserver_err.o \
	${ETSDIR}/krb_err.o	${ETSDIR}/rpc_err.o \
	${PROTDIR}/fx_prot_clnt.o ${PROTDIR}/fx_prot_xdr.o

#if defined(_IBMR2) || defined(sun)
INCLUDES = -I../include
#else
INCLUDES = -I../rpc3.9/usr/include -I../include
#endif
LIBS = -L../rpc3.9/usr/lib -L/usr/athena/lib -lhesiod -lkrb -ldes -lcom_err -lfxrpc

DEFINES = ${INCLUDES} -DKERBEROS -DHESIOD

build_library(fxcl,${FXCLOBJ})

llib-lfxcl.ln: ${FXCLSRC}
	lint ${CFLAGS} -Cfxcl ${FXCLSRC}

lint:	${FXCLSRC}
	lint -u ${CFLAGS} ${FXCLSRC}

saber_src:
	/**/#suppress 287
	/**/#load ${CFLAGS} ${LIBS} ${FXCLSRC} ../rpc3.9/rpc/xdr_reference.o
	/**/#link

clean::
	rm -f *.o core *~ libfxcl.a llib-lfxcl.ln libacl.a

install::
	install_library(fxcl,${ATHLIBDIR})

