<html><body><div style="font-family: 'Calibri', 'sans-serif';"><div dir="ltr">
<div dir="ltr">Use autotools&nbsp;or cmake instead of makefile includes?</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">-derek</div><div dir="ltr"><br></div><div dir="ltr">Sent from my mobile device. Please excuse any typos.</div></div>

</div><br><div id="htc_header">----- Reply message -----<br>From: &quot;Chris Fowler&quot; &lt;cfowler@outpostsentinel.com&gt;<br>To: &lt;ale@ale.org&gt;<br>Subject: [ale] Including Makefile<br>Date: Sat, Feb 4, 2017 6:10 PM</div></div><br><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>I'm including a Makefile in a Makefile via ../../../../ &nbsp;../Makefile.inc, but I want to "cascade" them. &nbsp;Here is a same tree:</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>build_root</div><div>&nbsp; &nbsp;I0000025</div><div>&nbsp; &nbsp; &nbsp;src</div><div>&nbsp; &nbsp; &nbsp; &nbsp; binutils-2.25</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>One option is to simply use links. &nbsp;In binutil's Makefile I could add</div><div>include ../Makefile.inc</div><div><br></div><div>In src:</div><div>ln -sf ../Makefile.inc Makefile.inc</div><div><br data-mce-bogus="1"></div><div>I can do that in src'c parent of I0000025. &nbsp;This is easiest.</div><div><br data-mce-bogus="1"></div><div>I thought If I used a Makefile.inc in each directory that only had 'include ../Makefile.inc' &nbsp;I could then modify that inc as needed to add stuff that pertains to the children of that directory. &nbsp;The obvious issue of make in binutils would always be in binutils and ../Makefile.inc would loop because it does not change directory when including. &nbsp;Of course it looped and I get "too many open files". &nbsp;</div><div><br data-mce-bogus="1"></div><div>Is there a way I can do the files instead of links like I want to? &nbsp;</div><div><br data-mce-bogus="1"></div></div></body></html>