/* 
 * Imakefile for lucy's tty client
 *
 * $Author: brlewis $
 * $Id: Imakefile,v 1.1 91/09/24 14:42:07 brlewis Exp Locker: brlewis $
 *
 * Copyright 1991 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file
 * "mit-copyright.h".
 */

SRC=main.c ctlucy.c do_stat.c do_scan.c do_show.c do_forward.c util.c \
    do_emacs.c do_post.c do_go.c do_unpost.c do_report.c do_ask.c \
    do_lpr.c do_mark.c do_browse.c do_reply.c do_chain.c do_unix.c \
    do_archive.c do_unarchive.c do_hire.c do_who.c do_ping.c
OBJ=main.o ctlucy.o do_stat.o do_scan.o do_show.o do_forward.o util.o \
    do_emacs.o do_post.o do_go.o do_unpost.o do_report.o do_ask.o \
    do_lpr.o do_mark.o do_browse.o do_reply.o do_chain.o do_unix.o \
    do_archive.o do_unarchive.o do_hire.o do_who.o do_ping.o
LIB=-L../lib -llucy -llogger -ldsk -lusp -lss -lcom_err -lkrb -ldes -lhesiod
INC=-I../include
DEFINES=${INC} -DLOG_USAGE

AnsiCC()

/* The order of the following three lines is important. */
cmd_table(ctlucy)
all:: ptypes.h
SimpleProgram(lucy,${OBJ},${LIB},)

/* before giving lucy to rel-eng, take out the ${SRC} dependency below
   and make sure that ptypes.h is in the src tree */
/**/# mkptypes is in the watchmaker locker
ptypes.h: ${SRC}
	rm -f ptypes.h~
	-mv ptypes.h ptypes.h~
	make ctlucy.c
	mkptypes ${SRC} > ptypes.h

saber_src: ${SRC}
	/**/#suppress 287
	/**/#suppress 223 in /usr/athena/include/discuss/interface.h
	/**/#load ${DEFINES} ${SRC}

saber_lib:
	/**/#load ${DEFINES} ${LIB}
