/*
 *  Imakefile for Athena Dashboard
 *  Copyright (c) 1991, Massachusetts Institute of Technology
 *		
 *   $Source: /afs/sipb/project/sipb-athena/src/dash/console/RCS/Imakefile,v $
 *   $Author: ghudson $ 
 *
 * Copyright 1990, 1991 by the Massachusetts Institute of Technology. 
 *
 * For copying and distribution information, please see the file
 * <mit-copyright.h>. 
 *
 */

#include "../Xj.defs"

#include "mit-copyright.h"

CONSOLE		=	console

#if defined(MacIIArchitecture)
M_LIB		=	-lmalloc
#else
M_LIB		=
#endif

SRCS		=	console.c
OBJS		=	console.o

XJLIB		=	../lib/libXj.a
#ifdef SOLARIS
C_LIBS		=	${LOCAL_LIBS} ${XJLIB} ${XLIB} ${M_LIB} /usr/ucblib/libucb.a
#else
C_LIBS		=	${LOCAL_LIBS} ${XJLIB} ${XLIB} ${M_LIB}
#endif

DEFINES         =       ${G_DEFINES}

INCLUDES	=	-I../lib ${LOCAL_INCLUDES}

AllTarget(${CONSOLE})
NormalProgramTarget($(CONSOLE),$(OBJS),$(XJLIB),,$(C_LIBS))
InstallProgram($(CONSOLE),$(CONSOLE_BIN_DIR))

InstallNonExec(${CONSOLE}.8,${MAN_DIR}/man8/${CONSOLE}.8)
InstallNonExec(Console,${CONSOLE_APP_DIR}/Console)
InstallNonExec(console.xbm,${CONSOLE_XBM_DIR}/console.xbm)
InstallNonExec(gray,${CONSOLE_XBM_DIR}/gray)

DependTarget()

/* .c.o:
 *	${CC} ${CFLAGS} -E $*.c | xstr -c -
 *	${CC} ${CFLAGS} -c x.c
 *	mv x.o $*.o
 *	${RM} x.c
 *
 *xs.o:
 *	xstr
 *	${CC} ${CFLAGS} -c xs.c
 */
