<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — makefile & dependencies]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=403&amp;type=atom" />
	<updated>2014-12-16T21:44:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=403</id>
		<entry>
			<title type="html"><![CDATA[Re: makefile & dependencies]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1695#p1695" />
			<content type="html"><![CDATA[<p>Normally any files that are included via <strong>INCLUDE</strong> statements are marked as dependencies for each file that includes them as long as that included file is part of your project.&nbsp; So, for example, if you have:</p><div class="codebox"><pre><code>INCLUDE &#039;COMVARS.INC&#039;</code></pre></div><p>in a file called <em>compute.f</em> and <em>comvars.inc</em> is also in your project, <em>compute.f</em> should recompile anytime <em>comvars.inc</em> is changed.&nbsp; However, if <em>comvars.inc</em> is not listed in your project, the above won&#039;t happen.</p><p>It can still be made a dependency by changing a single option, though.&nbsp; In &quot;<a href="http://simplyfortran.com/docs/full/options/make.html">Make Options</a>,&quot; accessible from the Options menu, you can uncheck &quot;Project-Only Fortran Include Dependencies&quot; to force the same behavior regardless of whether <em>comvars.inc</em> is in your project.</p><p>If your code uses</p><div class="codebox"><pre><code>#include &quot;comvars.inc&quot;</code></pre></div><p>via the C preprocessor, Simply Fortran does not track this dependency.&nbsp; You can instead, however, change the C preprocessor #include to a Fortran <strong>INCLUDE</strong> statement as they both work the same.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-12-16T21:44:25Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1695#p1695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[makefile & dependencies]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1692#p1692" />
			<content type="html"><![CDATA[<p>My program has a large common area in a separate file which is &quot;included&quot; in most of the routines in my program.&nbsp; How do I alert SF&#039;s makefile generator that I have changed the common area so that it recompiles all the modules that include the common area?</p>]]></content>
			<author>
				<name><![CDATA[dstraley]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3581</uri>
			</author>
			<updated>2014-12-16T19:18:23Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1692#p1692</id>
		</entry>
</feed>
