###
###
#
# Do not edit this file.
# Definitions are in makefile.inc.
#
###
###


everything: 
	@echo ------======= TAGL21 ======-------
	@echo 
	@echo Make sure you have the right 'makefile.inc'
	@echo See readme.1st
	@echo 
	@echo STEP 1 : Dependancies
	@echo ---------------------
	make dep
	@echo 
	@echo STEP 2 : Library
	@echo ----------------
	make library
	@echo 
	@echo STEP 3 : Sample programs
	@echo ------------------------
	make samples
	@echo 
	@echo Installation completed.
	@echo examples programs are in bin.
	@echo library and drivers are in lib.

dep:
	cd src;        $(MAKE) dep
	cd processors; $(MAKE) dep
	cd examples;   $(MAKE) dep

library:
	cd src;        $(MAKE)
	cd processors; $(MAKE)

samples:
	cd examples; $(MAKE)

clean:
	cd src;        $(MAKE) clean
	cd processors; $(MAKE) clean
	cd examples;   $(MAKE) clean
	find . -name "*~" -exec rm {} \;

distrib: clean
	rm -f bin/*
	rm -f lib/*
	cp config/remove.me bin
	cp config/remove.me lib
	cd ..; tar cf tagl21.tar tagl21; gzip tagl21.tar; mv tagl21.tar.gz tagl21.tgz
	
