<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Clean and modules]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=351</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=351&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Clean and modules.]]></description>
		<lastBuildDate>Sat, 14 Jun 2014 15:24:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Clean and modules]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1432#p1432</link>
			<description><![CDATA[<p>David,</p><p>It would be possible to do this, but I&#039;d prefer to shy away from having Simply Fortran &quot;manage&quot; files (your .mod files in this case) that it isn&#039;t normally involved with.&nbsp; A better alternative might be to allow custom Makefile commands that could be added to a build step so that you can add &quot;del *.mod&quot; to your Clean step but still keep the automatic Makefile building.</p><p>The <em>-J</em> flag is not deprecated.&nbsp; It is needed by the Fortran compiler to tell it where to place modules that it compiles.&nbsp; The <em>-I</em> flag only specifies a location to search for modules as opposed to the location where compiled modules should be placed.&nbsp; </p><p>In your case, one thing you could do is allow Simply Fortran to place its modules in the project directory as well.&nbsp; If you open Project Options and go to the File Locations tab, you can leave &quot;Module Directory&quot; blank, and all modules should be left in the project directory.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sat, 14 Jun 2014 15:24:56 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1432#p1432</guid>
		</item>
		<item>
			<title><![CDATA[Clean and modules]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1431#p1431</link>
			<description><![CDATA[<p>Would it be possible for &quot;Clean&quot; in the build menu to remove *.mod files from the project directory when they have the same name as a *.mod file in the &quot;modules&quot; sub-directory.</p><p>Although SF puts its *.mod files in the &quot;modules&quot; sub-directory, I have found that if there are .mod files in the project directory gfortran will try to use these first before looking in the &quot;modules&quot; sub-directory. This is probably a quirk of the search path that gfortran uses. Even though you have used -Jmodules it still looks in the project directory first. You can test this by putting an empty .mod file in the project directory.</p><p>I sometimes have *.mod files in my project directory because I sometimes compile my source code using other compilers (yes naughty). But then the *.mod files I generate prevents SF from building my project (since they are not GNU ones). Since &quot;Clean&quot; doesn&#039;t help, I have to remove these by hand currently.</p><p>An alternative would be to fix -Jmodules in the makefile (replace with -Imodules ?) so that the project directory isn&#039;t searched. I seem to recall -J was deprecated as some point, but I am not sure. I have been using -Imodules here in other work, unrelated to SF.</p>]]></description>
			<author><![CDATA[null@example.com (davidb)]]></author>
			<pubDate>Sat, 14 Jun 2014 10:45:35 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1431#p1431</guid>
		</item>
	</channel>
</rss>
