# Install files in the right place
#	XNEWSHOME must be set for this purpose
#	User must have write permissions in the
#				XVIEWHOME sub directoriers
# if you have other extensions built in already, plaese edit the
# initext.c and the Makefiles

setenv EXTENSIONHOME	$XNEWSHOME/share/src/xnews

# link the include files neccessary for compiling extension
	ln -s	$PWD/xinclude/palloc.h	$EXTENSIONHOME/include/palloc.h
	ln -s	$PWD/xinclude/graphics	$EXTENSIONHOME/include/graphics

# 2 ways to run this 
#	intalled in ${XNEWSHOME}/lib
#	or	linked	in LD_LIBRARY_PATH
# The default is to link.
# To install: simply use make install

# make the client code
	make -f make.client

# make the server code
	make   -f make.server

# make test code
	cd test
	make all


# this directory contains the extensionand will be
# included in the LD_LIBRARY_PATH search path
#
# add the equivalent lines in your xnews start up script
# or .cshrc
	cd ..
	setenv	EXT_CODE	$PWD
	setenv	LD_LIBRARY_PATH "$EXT_CODE :$XNEWSHOME/lib:/usr/lib" 
