################################################################
# Makefile for XVision directory
################################################################

TOP	= .
include $(TOP)/mk/boilerplate.mk

#SUBDIRS = src etc lib bin examples support
#SUBDIRS = src examples
SUBDIRS = src 
RELEASE = 2.0

install: progs

progs: 
	cd support/mpeg_lib; ./configure --cache-file=/dev/null --host=windowsnt
	make --directory=support/mpeg_lib libmpeg.a
	cp support/mpeg_lib/libmpeg.a $(LIBDIR)
clean::
	cd support/mpeg_lib; make -i clean
	rm -f lib/*.a


# I think a cleaner way to do this is to just checkout a fresh
# copy of XVision and tar it up in the normal way.
# Also, I deleted the stuff to build documentation tarfiles.
# People can build that themselves can't they?
TARFILE	= XVision_$(RELEASE).tar
tarfile: veryclean
	cd ..; tar zcvf $(TARFILE)

include $(TOP)/mk/target.mk

################################################################
# End
################################################################
