# Makefile for the xps-package
# First of all you have to run 'make config' to specify your operating 
# system. If you want to build all sources simply type <make>.
# Otherwise type <make xps> or <make samples> to build the code
# for the xps programm itself or the examples programms only.
# For installation run 'make install'. You must have superuser 
# rights to do that!
#
# Thomas Breitfeld August 18 1994
#


all: header test xps samples

header:
	@echo 
	@echo "Xps Maker"
	@echo "---------"
	
test: xps_config

xps_config:
	@echo "Xps has not been configured yet!"
	@echo "Trying to run 'make config' ..."
	make config
	@echo "Successful ! (Ignore following error !)"
	@echo
	exit 1

xps: force
	cd src; make

samples: force
	cd samples; make

clean:
	cd src; make clean
	cd samples; make clean

config:
	sh ./Configure xps_config

install:
	cp src/xps bin
	chown root.kmem bin/xps
	chmod 4755 bin/xps
	sh ./LINKS

force:

