<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>For this tree I that idea introduces some issues because binutils, gcc, and avr-libc need to be build in a work tree out of the src. &nbsp;To solve that the Makefile in the I000../src directory needs to pass its location to make when it enters each sub dir and builds.</div><div><br></div><div>include ../Makefile.inc in those files becomes include ${SRC_DIR}/Makefile.inc</div><div><br data-mce-bogus="1"></div><div>If src/Makefile has 'include ../Makefile.inc' like I originally wanted to do there would be a problem. &nbsp;Somehow within the Makefile.inc I need to know what directory that inc file is really in.</div><div><br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Chris Fowler" &lt;cfowler@outpostsentinel.com&gt;<br><b>To: </b>ale@ale.org<br><b>Sent: </b>Saturday, February 4, 2017 6:10:28 PM<br><b>Subject: </b>[ale] Including Makefile<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-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><br><br><div>build_root</div><div>&nbsp; &nbsp;I0000025</div><div>&nbsp; &nbsp; &nbsp;src</div><div>&nbsp; &nbsp; &nbsp; &nbsp; binutils-2.25</div><br><br><div>One option is to simply use links. &nbsp;In binutil's Makefile I could add</div><div>include ../Makefile.inc</div><br><div>In src:</div><div>ln -sf ../Makefile.inc Makefile.inc</div><br><div>I can do that in src'c parent of I0000025. &nbsp;This is easiest.</div><br><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><br><div>Is there a way I can do the files instead of links like I want to? &nbsp;</div><br></div><br>_______________________________________________<br>Ale mailing list<br>Ale@ale.org<br>http://mail.ale.org/mailman/listinfo/ale<br>See JOBS, ANNOUNCE and SCHOOLS lists at<br>http://mail.ale.org/mailman/listinfo<br></blockquote></div></div></body></html>