<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 24, 2019 at 2:46 PM Florian Weimer <<a href="mailto:fw@deneb.enyo.de">fw@deneb.enyo.de</a>> wrote:<br></div><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A useful implementation for C and C++ looks rather involved due to the<br>
preprocessor. </blockquote><div><br></div><div>I was thinking of something much simpler, like putting one of these, or something like them, in the Makefile immediately after the link step:</div><div><br></div><div>elftar r $@ $INCLUDE_FILES $SRC_FILES $ESSENTIAL_FILES</div><div><br></div><div>elftar r $@ $(find ../src ../include -name '*.[ch]')</div><div><br></div><div>Then at the other end the user runs "elftar x /usr/local/bin/foo', and its source and include directories are reconstituted for them.</div><div><br></div><div><br></div><div><br></div><div>John Cowan          <a href="http://vrici.lojban.org/~cowan">http://vrici.lojban.org/~cowan</a>        <a href="mailto:cowan@ccil.org">cowan@ccil.org</a><br>Ambassador Trentino: I've said enough. I'm a man of few words.<br>Rufus T. Firefly: I'm a man of one word: scram!    --Duck Soup<br></div><div><br></div></div></div>