<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Makefile</id>
		<title>Makefile - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=Makefile"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Makefile&amp;action=history"/>
		<updated>2026-04-04T20:17:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Makefile&amp;diff=7120&amp;oldid=prev</id>
		<title>Miranda ricardo: /* Sample makefiles */</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Makefile&amp;diff=7120&amp;oldid=prev"/>
				<updated>2014-09-08T18:19:21Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sample makefiles&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:19, 8 September 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Sample makefiles ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Sample makefiles ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In particular, the gnumake program is very documented [http://www.gnu.org/software/make/manual/make.html here].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In particular, the gnumake program is very &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;well &lt;/ins&gt;documented [http://www.gnu.org/software/make/manual/make.html here].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [[Mohid_Base_1]] ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [[Mohid_Base_1]] ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The source code of a sample [[Makefile]] is given bellow:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The source code of a sample [[Makefile]] is given bellow:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Miranda ricardo</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Makefile&amp;diff=457&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Makefile&amp;diff=457&amp;oldid=prev"/>
				<updated>2008-12-03T10:27:14Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:27, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Makefile&amp;diff=456&amp;oldid=prev</id>
		<title>89.180.146.64: /* Mohid_Base_1 */</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Makefile&amp;diff=456&amp;oldid=prev"/>
				<updated>2008-03-15T01:17:07Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;&lt;a href=&quot;/index.php?title=Mohid_Base_1&quot; title=&quot;Mohid Base 1&quot;&gt;Mohid_Base_1&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A makefile is a script run by make (or nmake under windows) that contains information about the dependencies of a series of targets and, additionally, makes them. For example, make can build the binaries for a large software project.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
Here's the syntax to use the make command:&lt;br /&gt;
 make ''Target''&lt;br /&gt;
 make -C ''Subdir'' ''Target''&lt;br /&gt;
 make -f ''filename'' ''Target''&lt;br /&gt;
''(ex: make -f mymakefile all).''&lt;br /&gt;
&lt;br /&gt;
In most projects in linux, the most common targets are:&lt;br /&gt;
*''all'': builds the full project.&lt;br /&gt;
*''install'': copies the executable files in their final destination on the system.&lt;br /&gt;
*''clean'': deletes the object and the executable files created by target ''all''.&lt;br /&gt;
&lt;br /&gt;
''NOTE: Here's how to ignore built-in pattern rules!!''&lt;br /&gt;
 &amp;gt; make -r target&lt;br /&gt;
This is very important for the following rules:&lt;br /&gt;
 %.o : %.c&lt;br /&gt;
 %.dvi : %.aux&lt;br /&gt;
&lt;br /&gt;
== [[Makefile methodologyP|A large project cross-platform, cross-compiler makefile methodology]] ==&lt;br /&gt;
[[Makefile CCCP|Here]] is described a CCCP makefile methodology particularly suitable for [[MOHID]].&lt;br /&gt;
&lt;br /&gt;
== Sample makefiles ==&lt;br /&gt;
In particular, the gnumake program is very documented [http://www.gnu.org/software/make/manual/make.html here].&lt;br /&gt;
=== [[Mohid_Base_1]] ===&lt;br /&gt;
The source code of a sample [[Makefile]] is given bellow:&lt;br /&gt;
&amp;lt;code&amp;gt;[makefile,Y]&lt;br /&gt;
 #&lt;br /&gt;
 #  Use GNUmake! &lt;br /&gt;
 #  Win32: rename gmake.exe to make.exe and load ifortvars.bat&lt;br /&gt;
 #  *nix: load ifortvars.sh&lt;br /&gt;
 #&lt;br /&gt;
  &lt;br /&gt;
 SHELL = /bin/sh &lt;br /&gt;
 &lt;br /&gt;
 .SUFFIXES:&lt;br /&gt;
 .SUFFIXES: .f90 .o&lt;br /&gt;
 &lt;br /&gt;
 DEL = rm -f&lt;br /&gt;
 &lt;br /&gt;
 BIN = ./bin&lt;br /&gt;
 MOD = ./mod&lt;br /&gt;
 SRC = .&lt;br /&gt;
 OBJ = .&lt;br /&gt;
 &lt;br /&gt;
 #-----Users: edit these lines!!!----------&lt;br /&gt;
 #*nix vs windows&lt;br /&gt;
 #Uncomment one of these&lt;br /&gt;
 #HDF5     = ../IntelLibs&lt;br /&gt;
 #MODOPT   = -module:$(MOD)&lt;br /&gt;
 #OBJOPT   = -object:$*.o&lt;br /&gt;
 HDF5     = /opt/hdf5/hdf5/lib&lt;br /&gt;
 MODOPT   = -module $(MOD)&lt;br /&gt;
 OBJOPT   = -o $*.o&lt;br /&gt;
 #-----Users: end of block ----------------&lt;br /&gt;
 &lt;br /&gt;
 TARGET = $(BIN)/mohidbase1.lib&lt;br /&gt;
 &lt;br /&gt;
 CC       = ifort&lt;br /&gt;
 CCFLAGS  = -c -fpp -nologo&lt;br /&gt;
 AR       = ar rc&lt;br /&gt;
 #--------Users: fill these lines with your sourcesafe data-------------&lt;br /&gt;
 SERVER   = &lt;br /&gt;
 USER     = &lt;br /&gt;
 PASS     = &lt;br /&gt;
 SOSHOME  = &lt;br /&gt;
 PROJECT  = Mohid_Base_1&lt;br /&gt;
 GET      = soscmd -command GetFile \&lt;br /&gt;
            -server $(SERVER):8890 \&lt;br /&gt;
            -name $(USER) -password $(PASS) \&lt;br /&gt;
            -database &amp;quot;W:\SourceSafe\Mohid_v4\srcsafe.ini&amp;quot; \&lt;br /&gt;
            -project $(PROJECT) \&lt;br /&gt;
            -soshome $(SOSHOME) \&lt;br /&gt;
            -file &lt;br /&gt;
 #--------End of sourcesafe data-------------&lt;br /&gt;
  &lt;br /&gt;
 #Rules to apply to a standard .o file&lt;br /&gt;
 .f90.o:&lt;br /&gt;
          @$(CC) $(CCFLAGS) $&amp;lt; $(OBJOPT) $(MODOPT)&lt;br /&gt;
          @echo  $* ......... [OK]&lt;br /&gt;
 &lt;br /&gt;
 OBJS = \&lt;br /&gt;
        ModuleGlobalData.o \&lt;br /&gt;
        ModuleTime.o \&lt;br /&gt;
        ModuleEnterData.o \&lt;br /&gt;
        ModuleFunctions.o \&lt;br /&gt;
        ModuleBenthos.o \&lt;br /&gt;
        ModuleCEQUALW2.o \&lt;br /&gt;
        ModuleTimeSerie.o \&lt;br /&gt;
        ModuleDischarges.o \&lt;br /&gt;
        ModuleDrawing.o \&lt;br /&gt;
        ModuleLUD.o \&lt;br /&gt;
        ModuleWaterQuality.o \&lt;br /&gt;
        ModuleSedimentQuality.o \&lt;br /&gt;
        ModuleLife.o \&lt;br /&gt;
        ModuleInterface.o \&lt;br /&gt;
        ModuleHydroIntegration.o \&lt;br /&gt;
        ModuleLightExtinction.o \&lt;br /&gt;
        ModuleStopWatch.o \&lt;br /&gt;
        ModuleTriangulation.o \&lt;br /&gt;
        ModuleHDF5.o \&lt;br /&gt;
        ModuleDrainageNetwork.o \&lt;br /&gt;
        ModuleProfile.o&lt;br /&gt;
 &lt;br /&gt;
 .PHONY: all clean&lt;br /&gt;
 &lt;br /&gt;
 all: $(TARGET)&lt;br /&gt;
 	@echo&lt;br /&gt;
 	@echo Finished building $(TARGET)&lt;br /&gt;
 	@echo&lt;br /&gt;
 &lt;br /&gt;
 $(TARGET) : $(OBJS)&lt;br /&gt;
 	@$(AR) $(TARGET) $(OBJS)&lt;br /&gt;
 	@echo  $(TARGET) ....... [OK]&lt;br /&gt;
 &lt;br /&gt;
 clean : &lt;br /&gt;
 	@-$(DEL) *.o $(MOD)/*.mod $(BIN)/*.lib&lt;br /&gt;
  	@echo $(TARGET) ......... [Erased]&lt;br /&gt;
 &lt;br /&gt;
 #This command here gets out of sourcesafe the latest version&lt;br /&gt;
 sos: $(OBJS:.o=)&lt;br /&gt;
 &lt;br /&gt;
 $(OBJS:.o=)::&lt;br /&gt;
         @-$(GET) $@.f90&lt;br /&gt;
         @echo  $@.f90 ....... [Updated]&lt;br /&gt;
 &lt;br /&gt;
 #--------Dependencies list-------------&lt;br /&gt;
 &lt;br /&gt;
 ModuleGlobalData.o : ModuleGlobalData.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleTime.o : ModuleGlobalData.o \&lt;br /&gt;
               ModuleTime.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleEnterData.o : ModuleTime.o \&lt;br /&gt;
                    ModuleEnterData.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleFunctions.o : ModuleEnterData.o \&lt;br /&gt;
                    ModuleFunctions.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleBenthos.o : ModuleEnterData.o \&lt;br /&gt;
                  ModuleBenthos.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleCEQUALW2.o : ModuleFunctions.o \&lt;br /&gt;
                   ModuleCEQUALW2.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleTimeSerie.o : ModuleEnterData.o \&lt;br /&gt;
                    ModuleTimeSerie.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleDischarges.o : ModuleFunctions.o \&lt;br /&gt;
                     ModuleTimeSerie.o \&lt;br /&gt;
                     ModuleDischarges.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleDrawing.o : ModuleFunctions.o \&lt;br /&gt;
                  ModuleDrawing.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleLUD.o : ModuleGlobalData.o \&lt;br /&gt;
              ModuleLUD.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleWaterQuality.o : ModuleFunctions.o \&lt;br /&gt;
                       ModuleLUD.o \&lt;br /&gt;
                       ModuleWaterQuality.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleSedimentQuality.o : ModuleFunctions.o \&lt;br /&gt;
                          ModuleLUD.o \&lt;br /&gt;
                          ModuleSedimentQuality.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleLife.o : ModuleFunctions.o \&lt;br /&gt;
               ModuleLife.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleInterface.o : ModuleWaterQuality.o \&lt;br /&gt;
                    ModuleSedimentQuality.o \&lt;br /&gt;
                    ModuleCEQUALW2.o \&lt;br /&gt;
                    ModuleLife.o \&lt;br /&gt;
                    ModuleBenthos.o \&lt;br /&gt;
                    ModuleInterface.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleHydroIntegration.o : ModuleTime.o \&lt;br /&gt;
                           ModuleHydroIntegration.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleLightExtinction.o : ModuleFunctions.o \&lt;br /&gt;
                          ModuleTimeSerie.o \&lt;br /&gt;
                          ModuleLightExtinction.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleStopWatch.o : ModuleTime.o \&lt;br /&gt;
                    ModuleStopWatch.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleTriangulation.o : ModuleGlobalData.o \&lt;br /&gt;
                        ModuleTriangulation.f90&lt;br /&gt;
 &lt;br /&gt;
 #The following module requires the HDF5 mod files&lt;br /&gt;
 ModuleHDF5.o : ModuleGlobalData.o \&lt;br /&gt;
               ModuleHDF5.f90&lt;br /&gt;
 	@$(CC) $(CCFLAGS) -I$(HDF5) $*.f90 $(OBJOPT) $(MODOPT)&lt;br /&gt;
 	@echo  $* ......... [OK]&lt;br /&gt;
 &lt;br /&gt;
 ModuleDrainageNetwork.o : ModuleDischarges.o \&lt;br /&gt;
                          ModuleLightExtinction.o \&lt;br /&gt;
                          ModuleStopWatch.o \&lt;br /&gt;
                          ModuleInterface.o \&lt;br /&gt;
                          ModuleDrainageNetwork.f90&lt;br /&gt;
 &lt;br /&gt;
 ModuleProfile.o : ModuleEnterData.o \&lt;br /&gt;
                  ModuleHDF5.o \&lt;br /&gt;
                  ModuleProfile.f90&lt;br /&gt;
 &lt;br /&gt;
 #--------End of dependencies list---------&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===ADCP to AVU===&lt;br /&gt;
 SHELL = /bin/sh &lt;br /&gt;
 &lt;br /&gt;
 #CCCPEV (Cross-Compiler, Cross-Platform Environment Variables)&lt;br /&gt;
 CC=gcc&lt;br /&gt;
 CCFLAGS=-c&lt;br /&gt;
 LCFLAGS= &lt;br /&gt;
 OCFLAG=-o &lt;br /&gt;
 RM=del&lt;br /&gt;
 H=h&lt;br /&gt;
 C=c&lt;br /&gt;
 O=o&lt;br /&gt;
 A=exe&lt;br /&gt;
 D=tds&lt;br /&gt;
 L=lib&lt;br /&gt;
 &lt;br /&gt;
 #Files list&lt;br /&gt;
 TARGET=adcp_avu.$(A)&lt;br /&gt;
 SRC=adcp_avu_this.$(C) readstring.$(C)&lt;br /&gt;
 OBJ=$(SRC:.$(C)=.$(O))&lt;br /&gt;
 LIB=&lt;br /&gt;
 HDR=$(SRC:.$(C)=.$(H))&lt;br /&gt;
 &lt;br /&gt;
 #Action &amp;quot;make all&amp;quot;&lt;br /&gt;
 .PHONY=all&lt;br /&gt;
 all : $(TARGET)&lt;br /&gt;
 	-$(RM) $(OBJ) $(^:.$(A)=.$(D)) &lt;br /&gt;
 &lt;br /&gt;
 $(TARGET) : $(LIB) $(OBJ)&lt;br /&gt;
 	$(CC) $(LCFLAGS) $(OCFLAG)$@ $^&lt;br /&gt;
 &lt;br /&gt;
 $(LIB) : &lt;br /&gt;
 	@echo Warning: $@ is missing.&lt;br /&gt;
 &lt;br /&gt;
 %.$(O) : %.$(C)&lt;br /&gt;
 	$(CC) $(CCFLAGS) $&amp;lt;&lt;br /&gt;
 &lt;br /&gt;
 #Action &amp;quot;make clean&amp;quot;&lt;br /&gt;
 .PHONY=clean&lt;br /&gt;
 clean :&lt;br /&gt;
 	-$(RM) $(OBJ) $(TARGET) $(TARGET:.$(A)=.$(D))&lt;br /&gt;
 &lt;br /&gt;
 #Dependencies list&lt;br /&gt;
 %.$(C) : %.$(H)  #Fortran is %.$(H) : %.$(O)&lt;br /&gt;
 adcp_avu_this.$(O) : readstring.$(H)&lt;br /&gt;
&lt;br /&gt;
===Mururoa===&lt;br /&gt;
Here's another sample [http://en.wikipedia.org/wiki/Make makefile] made for \\guillaume\projects\mururoa&lt;br /&gt;
based on [[*NIX_platforms]] and on [http://www.eng.hawaii.edu/Tutor/Make/index.html this] tutorial.&lt;br /&gt;
&lt;br /&gt;
 SHELL = /bin/sh &lt;br /&gt;
 &lt;br /&gt;
 #Suffixes which we'll be working on&lt;br /&gt;
 .SUFFIXES: .cpp .o&lt;br /&gt;
 &lt;br /&gt;
 #windows/linux bash commands&lt;br /&gt;
 COPY = xcopy /-Y&lt;br /&gt;
 DEL = del /Q &lt;br /&gt;
 &lt;br /&gt;
 BIN = ../bin&lt;br /&gt;
 INC = ../inc&lt;br /&gt;
 SRC = .&lt;br /&gt;
 OBJ = .&lt;br /&gt;
 LIB = ../lib &lt;br /&gt;
 &lt;br /&gt;
 CC       = gcc&lt;br /&gt;
 CCFLAGS  = -c -I$(INC)&lt;br /&gt;
 LFLAGS   = -L$(LIB)&lt;br /&gt;
 CPP      = g++&lt;br /&gt;
 &lt;br /&gt;
 #Rules to apply to a standard .o file&lt;br /&gt;
 .cpp.o:&lt;br /&gt;
 	$(CC) $(CCFLAGS) ./$&amp;lt;&lt;br /&gt;
 &lt;br /&gt;
 OBJS = \&lt;br /&gt;
        prog_3d.o      \&lt;br /&gt;
        prog_prm.o     \&lt;br /&gt;
        prog_io.o      \&lt;br /&gt;
        prog_cdf_out.o \&lt;br /&gt;
        prog_cdf.o     \&lt;br /&gt;
        prog_blc.o     \&lt;br /&gt;
        prog_all.o     \&lt;br /&gt;
        msnemo.o	 &lt;br /&gt;
 &lt;br /&gt;
 INCS = \&lt;br /&gt;
        $(INC)/StdAfx.h     \&lt;br /&gt;
        $(INC)/prog_3d.h    \&lt;br /&gt;
        $(INC)/prog_all.h   \&lt;br /&gt;
        $(INC)/prog_blc.h   \&lt;br /&gt;
        $(INC)/prog_boo.h   \&lt;br /&gt;
        $(INC)/prog_cdf.h   \&lt;br /&gt;
        $(INC)/prog_cdf_out.h   \&lt;br /&gt;
        $(INC)/prog_ind.h   \&lt;br /&gt;
        $(INC)/prog_io.h    \&lt;br /&gt;
        $(INC)/prog_prm.h   \&lt;br /&gt;
        $(INC)/prog_mai.h   \&lt;br /&gt;
        $(INC)/prog_switches.h  \ &lt;br /&gt;
 &lt;br /&gt;
 LIBS = \&lt;br /&gt;
        $(LIB)/netcdf.lib&lt;br /&gt;
 &lt;br /&gt;
 #Compiles the full solution and cleans the intermediate files&lt;br /&gt;
 all: msnemo postclean &lt;br /&gt;
 &lt;br /&gt;
 #Makes the main executable&lt;br /&gt;
 #links the object files against the libraries&lt;br /&gt;
 msnemo: $(OBJS)&lt;br /&gt;
 	$(CPP) $(LFLAGS) -o $(BIN)/$@.exe $(OBJS) $(LIBS)&lt;br /&gt;
 &lt;br /&gt;
 #Cleans to the original distro&lt;br /&gt;
 clean:&lt;br /&gt;
 	-$(DEL) *.o&lt;br /&gt;
  &lt;br /&gt;
 #Cleans everything except binaries, source and object files&lt;br /&gt;
 postclean:&lt;br /&gt;
 &lt;br /&gt;
 #Installs the binaries in the right places of the system&lt;br /&gt;
 install:&lt;br /&gt;
 &lt;br /&gt;
 #Dependencies&lt;br /&gt;
 prog_3d.o: $(INCS)&lt;br /&gt;
 prog_prm.o: $(INCS)&lt;br /&gt;
 prog_io.o: $(INCS)&lt;br /&gt;
 prog_cdf_out.o: $(INCS)&lt;br /&gt;
 prog_cdf.o: $(INCS)&lt;br /&gt;
 prog_blc.o: $(INCS)&lt;br /&gt;
 prog_all.o: $(INCS)&lt;br /&gt;
 msnemo.o: $(INCS)&lt;br /&gt;
&lt;br /&gt;
==Troubleshoots==&lt;br /&gt;
===use DFWIN===&lt;br /&gt;
This is a windows platform specific library. It cannot be ported to Linux. To build the code in linux you need to change it first. This is currently(20061201) the case in ''ModuleGlueHDF5''. If you get an error attempting to make it in windows, first make sure you're calling [[makefile|make]] inside an Intel Fortran Development Console, which is where all the environment variables are correct.&lt;br /&gt;
==='''ifconsol'''===&lt;br /&gt;
If you get an error about an &amp;quot;ifconsol&amp;quot;, then it's probably because you have incorrect environment variables. Under windows, make sure you're inside an Intel Fortran Development Console.&lt;br /&gt;
&lt;br /&gt;
== Other references ==&lt;br /&gt;
# The Wikipedia [http://en.wikipedia.org/wiki/Make article].&lt;br /&gt;
# The [http://www.gnu.org/software/make/manual/make.html GNUMake] documentation. A classic standard.&lt;br /&gt;
# [http://www.eng.hawaii.edu/Tutor/Make/index.html Here's] a popular tutorial.&lt;br /&gt;
# The 20060629 workshop [http://www.mohid.com/hydrogroup/presentations/HG_060629_Formacao_Makefiles.ppt powerpoint].&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Windows]]&lt;br /&gt;
[[Category:Makefile]]&lt;/div&gt;</summary>
		<author><name>89.180.146.64</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>