#
# Simple makefile for the qmaserv process
# Phil Maechling
#
# Currently there is a Makefile.linux target, and a Makefile.solcomp
# target. Makefile.linux uses g++ on Solaris assuming a linux version of
# comserv. Makefile.solcomp uses Sun C++ on Solaris assuming a non-linux 
# version of comserv.
#
# Files of similiar types may be grouped into directories for
# convienence.
#
# The makefile in each directory should support the following targets:
#       all
#       clean
#       veryclean
#       install
#
BINDIR  = ../bin

ALL     = utils msgs cserv qmaserv

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

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

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