# $Id: Makefile,v 1.1 2004/03/18 23:03:48 lombard Exp $
#########################################################################
# Make all the comserv executables and default clients
# Customize the Makefiles in each directory for your system.
# You may add other client directories in this directory, and
# add the directory name to the ALL definition.
# The Makefile in each directory should support the following targets:
#	all
#	clean
#	install

# BINDIR defined with respect to the subdirectories.


ALL	=  qlib2 util comserv clients clients.ucb clients.cit qmaserv

all: 	
	@#for dir in $(ALL) ; do \
	#	echo BUILD for $$dir ... ; \
	#	(cd $$dir; make -f Makefile.solaris all); \
	#done
	@echo You must "make linux" or "make solaris"

solaris: 	
	for dir in $(ALL) ; do \
		echo BUILD for $$dir ... ; \
		(cd $$dir; make -f Makefile.solaris all); \
	done

linux: 	
	for dir in $(ALL) ; do \
		echo LINUXBUILD for $$dir ... ; \
		(cd $$dir; make -f Makefile.linux all); \
	done


linuxclean:
	for dir in $(ALL) ; do \
		(cd $$dir; make -f Makefile.linux clean); \
	done

clean:
	for dir in $(ALL) ; do \
		(cd $$dir; make -f Makefile.solaris clean); \
	done

veryclean:
	for dir in $(ALL) ; do \
		(cd $$dir; make -f Makefile.solaris veryclean); \
	done

install:
	for dir in $(ALL) ; do \
		(cd $$dir; make -f Makefile.solaris install);  \
	done

tar:	
	(cd ../.. ; \
	tar cvf  ../comserv_linux.tar * )
	

