#    This file is part of MKF.
#
#    MKF is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    MKF is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with MKF; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#    Copyright (c) 2004 Alexandre Becoulet <alexandre.becoulet@epita.fr>

_if_var_eq		cmd_as
 var_define		cmd_as	as
_end_if

_if_in_path		{PVAR,cmd_as}

 msg_info		GNU as ({PVAR,cmd_as}) found
 var_define		use_as	as

 _if_var_eq		mkf_pretty_print	yes
  command_add		s	o	echo "   AS               {SRC,.*\.s} -> {OUT}"
 _end_if
 command_add		s	o	{JVAR,cmd_as} -o {OUT} {JVAR,opt_as} {SRC,.*\.s}

_else

  msg_error		can't find as tool
_end_if

