/* This software is Copyright 1995 by Karl-Johan Johnsson
 *
 * Permission is hereby granted to copy, reproduce, redistribute or otherwise
 * use this software as long as: there is no monetary profit gained
 * specifically from the use or reproduction of this software, it is not
 * sold, rented, traded or otherwise marketed, and this copyright notice is
 * included prominently in any copy made. 
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ANY USE OF THIS
 * SOFTWARE IS AT THE USER'S OWN RISK.
 */
#include "../knews.tmpl"

#include "../configure.h"
#undef DOMAIN_NAME
#undef MAIL_COMMAND
#undef EDIT_COMMAND

#if HAVE_POSIX_REGEXPS
#  define REGEXP_LIB
#else
#  define REGEXP_LIB -L../regexp -lregexp
EXTRA_INCLUDES = -I../regexp
#endif

#if HAVE_XMU
#  define XMU_LIB $(XMULIB)
#else
#  define XMU_LIB
#endif

#if HAVE_XPM
#  define XPM_LIB -lXpm
#else
#  define XPM_LIB
#endif

LOCAL_LIBRARIES	= \
	-L../Widgets -lWidgets REGEXP_LIB XMU_LIB XPM_LIB $(XTOOLLIB) $(XLIB)
DEPLIBS	= $(DEPXLIBS) ../Widgets/libWidgets.a

SRCS = \
	actions.c ahead.c bg.c cache.c charset.c child.c color.c     \
	connect.c decode.c domain.c file.c font.c kaction.c kedit.c  \
	kill.c mailcap.c main.c misc.c newsrc.c parse.c partial.c    \
	pcheck.c ppopup.c pixmaps.c post.c procs.c psetup.c read.c   \
	resource.c save.c search.c server.c sort.c sysdeps.c tag.c   \
	thread.c util.c uudecode.c viewer.c widgets.c xutil.c

OBJS = \
	actions.o ahead.o bg.o cache.o charset.o child.o color.o     \
	connect.o decode.o domain.o file.o font.o kaction.o kedit.o  \
	kill.o mailcap.o main.o misc.o newsrc.o parse.o partial.o    \
	pcheck.o ppopup.o pixmaps.o post.o procs.o psetup.o read.o   \
	resource.o save.o search.o server.o sort.o sysdeps.o tag.o   \
	thread.o util.o uudecode.o viewer.o widgets.o xutil.o

ComplexProgramTarget(knews)
InstallAppDefaults(Knews)
