#!/bin/csh -f
#
# $RCSfile: genProtComposeFiles,v $
#
# x-kernel v3.2
#
# Copyright (c) 1993,1991,1990  Arizona Board of Regents
#
# $Revision: 1.1 $
# $Date: 1993/04/27 01:13:41 $
#

#
# Generates Makefile directives to define the object files for each 
# protocol
#



echo '#'
echo '# Caution -- this file is automatically generated and overwritten'
echo '#'
echo ''
echo 'include $(XRT)/protocols/ComposeHacks'
echo ''
while ( $#argv )
	echo ""
	echo 'ifneq (,$(findstring +'$1'+,$(COMPOSE_LIB_PROTS)))'
	echo 'include $(XRT)/protocols/'$1'/Files'
	echo -n $1'_FILES := '
	echo '$(addsuffix .o,$(addprefix protocols/'$1'/$(HOW)/,$(FILES)))'
	echo endif
	echo ""
	shift 
end
