[Emacs-ada-mode] Main programs

Simon Wright simon at pushface.org
Wed Nov 19 13:43:35 PST 2008


On 19 Nov 2008, at 20:27, Simon Wright wrote:

> At the moment ada-prj-default-make-cmd is
> (concat "${cross_prefix}gnatmake -o ${main} ${main} ${gnatmake_opt} "
> 	  "-cargs ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}")
>
> which forces us to have a ${main}. GPRs would let us say just
> (concat "${cross_prefix}gnatmake ${gnatmake_opt} "
> 	  "-cargs ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}")
>
> but then it would be harder to specify a non-default main!

Having had a play, it seems to me that *if you are using project  
files* then the best ada-prj-default-make-cmd would  be just

   "${cross_prefix}gnatmake ${gnatmake_opt}"

--S




More information about the Emacs-ada-mode mailing list