/* 
 * Iakefile for the FX (file exchange) server
 *
 * $Author: susan $
 * $Id: Imakefile,v 1.3 1993/05/17 16:55:21 susan Exp $
 *
 *
 * Copyright 1989, 1990 by the Massachusetts Institute of Technology.
 *
 * For copying and distribution information, please see the file
 * <mit-copyright.h>.
 *
 */

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

/* RS/6000 should use RPC from libc */
#if !defined(_IBMR2)
RPCINC=-I../rpc3.9/usr/include
#endif

RPCLIB = -L../rpc3.9/usr/lib -lfxrpc

INCLUDES = ${RPCINC} -I../include

KRBLIBS = -lkrb -ldes
/**/#HESLIBS = -lhesiod

LIBS = -L../lib -lacl ${KRBLIBS} -lcom_err ${RPCLIB} ${HESLIBS}

/**/# Define KERBEROS for Kerberos support
DEFKRB = -DKERBEROS

/**/# Define HESIOD for Hesiod support
/**/#DEFHES = -DHESIOD

/**/# Define MULTI for multiple server support
DEFMULTI = -DMULTI

/**/# Define DEBUG for command debugging messages
/**/# Define DEBUGDB for db debugging messages
/**/# Define DEBUGMULTI for debugging multiple server support
/**/# Define MALLOC_LEAK for malloc scribble checking and function tracing
/**/#DEFDEBUG = -DDEBUG -DDEBUGDB

DEFINES= ${INCLUDES} ${DEFKRB} ${DEFHES} ${DEFMULTI} ${DEFDEBUG}

#if !defined(_IBMR2)
MALLOCSRC = malloc.c
MALLOCOBJ = malloc.o
#endif

FXSRVOBJS = \
	${ETSDIR}/fxserver_err.o \
	${PROTDIR}/local_prot_clnt.o \
	${PROTDIR}/fx_prot_svc.o \
	${PROTDIR}/fx_prot_xdr.o \
	db.o \
	commands.o \
	main.o ${MALLOCOBJ} \
	multi.o \
	util.o

FXSRVSRCS = \
	${ETSDIR}/fxserver_err.c \
	${PROTDIR}/local_prot_clnt.c \
	${PROTDIR}/fx_prot_svc.c \
	${PROTDIR}/fx_prot_xdr.c \
	db.c \
	commands.c \
	main.c ${MALLOCSRC} \
	multi.c \
	util.c

SimpleProgram(fxserver,${FXSRVOBJS},${LIBS},$(ATHBINDIR))

saber_src:
	/**/#suppress 223
	/**/#suppress 287
	/**/#load ${INCLUDES} ${DEFKRB} ${DEFHES} ${DEFMULTI} -DDEBUG -DDEBUGMULTI -DDEBUGDB ${FXSRVSRCS} ${LIBS}

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