/*
 * Imakefile for Andrew Toolkit clients of NEOS server.
 *
 * $Author: rr2b $
 * $Id: Imakefile,v 1.5 1993/07/16 14:24:15 rr2b Exp $
 *
 * Copyright (c) 1990, Massachusetts Institute of Technology
 * For full copyright information see mit-copyright.h.
 *
 */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $Disclaimer: This software is part of version 5.2.0 of the 
*Andrew User Interface System and is the 
*property of IBM, Carnegie Mellon University, 
*and the other copyright holders.  The source 
*code of this version is for the sole use of 
*members of the Andrew Consortium with 
*memberships extending into calendar year 
*1993.  This source code is not to be distributed 
*to non-members of the consortium nor beyond 
*a fifty-mile radius from the membership address.  
*Binary object code compiled or derived from 
*these sources is not to be distributed to non-
*members.  Members may have additional 
*distribution rights granted by prior written 
*permission of Carnegie Mellon University.
*
*IBM, CARNEGIE MELLON UNIVERSITY, 
*AND THE OTHER COPYRIGHT HOLDERS
* DISCLAIM ALL WARRANTIES WITH 
*REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANT-
*ABILITY AND FITNESS. IN 
*NO EVENT SHALL  IBM, CARNEGIE 
*MELLON UNIVERSITY, OR ANY OTHER 
*COPYRIGHT HOLDER BE LIABLE FOR 
*ANY SPECIAL, INDIRECT OR CONSE-
*QUENTIAL DAMAGES OR ANY DAMAGES 
*WHATSOEVER RESULTING FROM LOSS OF
*USE, DATA OR PROFITS, WHETHER IN AN
*ACTION OF CONTRACT, NEGLIGENCE OR
*OTHER TORTIOUS ACTION, ARISING OUT 
*OF OR IN CONNECTION WITH THE USE OR
*PERFORMANCE OF THIS SOFTWARE.
* $
* $
*/


NEOSDIR = ${TOP}/../fxlib
LOCALINCLUDES = -I${NEOSDIR}/lib -I${NEOSDIR}/include/fx

HESLIB = /usr/athena/lib/libhesiod.a

NEOSLIBS = ${NEOSDIR}/lib/libfxcl.a \
	${HESLIB} \
	/usr/athena/lib/libkrb.a \
	/usr/athena/lib/libdes.a \
	/usr/athena/lib/libcom_err.a\
	${NEOSDIR}/lib/libfxrpc.a

#ifdef i386_ENV
BSDLIB = /usr/lib/libbsd.a
#else /* i386_ENV */
#ifdef _IBMR2
BSDLIB = -lbsd
#endif /* _IBMR2 */
#endif /* i386_ENV */


OBJS = papersaux.o

DOBJS =  gradeapp.do \
	eosapp.do \
	eosbutt.do \
	eosfx.do \
	eframe.do \
	eos.do \
	papers.do \
	turnin.do \
	pickup.do \
	newbttnv.do \
	blank.do

IHFILES = gradeapp.ih \
	eosapp.ih \
	eosbutt.ih \
	eosfx.ih \
	eos.ih \
	eframe.ih \
	papers.ih \
	turnin.ih \
	pickup.ih \
	newbttnv.ih \
	blank.ih

NormalObjectRule()
NormalATKRule()

DynamicObject(eosbutt,,)

DynamicObject(eosapp,${BASEDIR}/lib/atk/libbasics.a ${UTILLIB},)
DynamicObject(gradeapp,,)

#ifdef sys_sun4_51
DynamicObject(eosfx,${NEOSLIBS},/usr/gcc/lib/libgcc.a)
#else
DynamicObject(eosfx,${NEOSLIBS},${BSDLIB})
#endif

DynamicObject(eframe,,)

DynamicMultiObject(eos.do, eos.o eosaux.o, ${BASEDIR}/lib/atk/libframe.a ${UTILLIB} ,)

DynamicMultiObject(papers.do, papers.o papersaux.o,${UTILLIB} ${BASEDIR}/lib/atk/libbasics.a,${HESLIB})

DynamicMultiObject(turnin.do, turnin.o turninaux.o,${UTILLIB} ${BASEDIR}/lib/atk/libbasics.a,)

DynamicObject(pickup,,)
DynamicObject(newbttnv,,)
DynamicObject(blank,,)

InstallClassFiles($(DOBJS),$(IHFILES))

InstallMultiple(eos.h eosapp.h eos_structs.h eosvers.h sort.h, ${INSTINCFLAGS}, $(DESTDIR)/include/atk)

InstallLink(runapp, ${DESTDIR}/bin/grade)
InstallLink(runapp, ${DESTDIR}/bin/eos)

NormalHelpRule()

InstallDocs(grade.help eos.help,${DESTDIR}/help)

DependTarget()
