/*
 *
 *      This is the Makefile for Xmore, a file browsing utility
 *      built upon Xlib and the XToolkit.
 *      
 *      Created: 	October 22, 1987
 *      By:		Chris D. Peterson
 *
 *	$Id: Imakefile,v 1.1.1.1 1997/12/09 21:23:50 ghudson Exp $
 *
 *         Copyright 1987, 1988 by the Massachusetts Institute of Technology.
 *     
 *      For further information on copyright and distribution 
 *      see the file mit-copyright.h
 */

# Directories to put the things into on install.

LIBDIR=/usr/athena/lib

DEFINES= -DHELPFILE=\"${LIBDIR}/xmore.help\" 
#ifdef sun
LIBES= -lXaw -lXt -lXmu -lXext -lX11 -lm
#else
LIBES= -lXaw -lXt -lXmu -lXext -lX11
#endif
OBJS= globals.o help.o main.o pages.o ${XTKOBJS}
XTKOBJS= ScrollByLine.o
XTKFILES= ScrollByLine.c
INCLUDE= defs.h globals.h more.h mit-copyright.h
CFILES= globals.c help.c main.c pages.c ${XTKFILES}

SimpleProgram(xmore,$(OBJS),$(LIBES),$(ATHBINDIR))
install_file(xmore.help,$(LIBDIR))
install_man(xmore.man,xmore.1)

globals.o:	globals.c ${INCLUDE}
help.o:		help.c ${INCLUDE}
main.o:		main.c ${INCLUDE}
pages.o:	pages.c ${INCLUDE}
ScrollByLine.o: ScrollByLine.c ScrollByLineP.h ScrollByLine.h

saber: ;
	saber ${INCFLAGS} ${LDFLAGS} ${CFILES} ${LIBES}

shar: 	;
	shar README Makefile xmore.help xmore.man \
	     ${CFILES} ${XTKFILES} > xmore.shar

manual:	;
	nroff -man xmore.man > xmore.cat


#if 0
depend:
	makedepend  ${CFLAGS} ${CFILES} 
#endif
