#
# $Header: /users/ricks/xrn-11/R4/RCS/Imakefile,v 1.7 89/11/17 11:47:25 ricks Rel Locker: ricks $
#
# xrn - an X-based NNTP news reader
#
# Copyright (c) 1988, 1989, Ellen M. Sentovich and Rick L. Spickelmier.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of the University of California not
# be used in advertising or publicity pertaining to distribution of 
# the software without specific, written prior permission.  The University
# of California makes no representations about the suitability of this
# software for any purpose.  It is provided "as is" without express or
# implied warranty.
#
# THE UNIVERSITY OF CALIFORNIA DISCLAIMS ALL WARRANTIES WITH REGARD TO 
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 
# FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA 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.
#
# Suggestions, comments, or improvements are welcome and should be
# addressed to:
#
#   xrn@eros.berkeley.edu
#   ..!ucbvax!eros!xrn
#

#ifdef BandAidCompiler
#include BandAidCompiler
#endif

#if defined(XmacIIServer) || defined(hp9000s300) || defined(hp9000s800)
SYSLAST_LIBRARIES = -lPW
#endif

#if defined(aiws)
DEFINES = -a -Nn3000 -Nd4000
#endif

        DEFINES = -DXAW_BC
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
           SRCS = avl.c buttons.c clientlib.c compose.c cursor.c dialogs.c \
		  mesg.c error_hnds.c newsrcfile.c resources.c     \
		  internals.c save.c server.c utils.c xmisc.c xrn.c    \
		  xthelper.c vprintf.c strtok.c
           OBJS = avl.o buttons.o clientlib.o compose.o cursor.o dialogs.o \
		  mesg.o error_hnds.o newsrcfile.o resources.o     \
		  internals.o save.o server.o utils.o xmisc.o xrn.o    \
		  xthelper.o vprintf.o strtok.o y.tab.o

ComplexProgramTarget(xrn)

lex.yy.c: newsrc.l
	lex newsrc.l

y.tab.c: newsrc.y
	yacc newsrc.y

y.tab.o: lex.yy.c avl.h news.h newsrcfile.h utils.h

clean::
	$(RM) y.tab.c lex.yy.c

InstallAppDefaults(XRn)

