<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Example_Makefile_for_a_program</id>
	<title>Example Makefile for a program - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Example_Makefile_for_a_program"/>
	<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;action=history"/>
	<updated>2026-04-19T00:03:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;diff=6263&amp;oldid=prev</id>
		<title>Jadrian Miles at 23:14, 17 January 2013</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;diff=6263&amp;oldid=prev"/>
		<updated>2013-01-17T23:14:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:14, 17 January 2013&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Example of a Makefile for a simple program ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# G_COMPILER settings are optional, but can be used to designate a preferred compiler.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# G_COMPILER settings are optional, but can be used to designate a preferred compiler.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jadrian Miles</name></author>
	</entry>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;diff=6259&amp;oldid=prev</id>
		<title>Jadrian Miles: moved Program to Example Makefile for a program: Terrible page name. wtf?</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;diff=6259&amp;oldid=prev"/>
		<updated>2013-01-17T23:13:37Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/index.php/Program&quot; class=&quot;mw-redirect&quot; title=&quot;Program&quot;&gt;Program&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/Example_Makefile_for_a_program&quot; title=&quot;Example Makefile for a program&quot;&gt;Example Makefile for a program&lt;/a&gt;: Terrible page name. wtf?&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:13, 17 January 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&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>Jadrian Miles</name></author>
	</entry>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;diff=4632&amp;oldid=prev</id>
		<title>Brad Berg: New page: == Example of a Makefile for a simple program ==  &lt;pre&gt; # G_COMPILER settings are optional, but can be used to designate a preferred compiler. # If they are set here you won&#039;t need to set ...</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Example_Makefile_for_a_program&amp;diff=4632&amp;oldid=prev"/>
		<updated>2010-11-19T16:32:41Z</updated>

		<summary type="html">&lt;p&gt;New page: == Example of a Makefile for a simple program ==  &amp;lt;pre&amp;gt; # G_COMPILER settings are optional, but can be used to designate a preferred compiler. # If they are set here you won&amp;#039;t need to set ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Example of a Makefile for a simple program ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# G_COMPILER settings are optional, but can be used to designate a preferred compiler.&lt;br /&gt;
# If they are set here you won&amp;#039;t need to set them outside the Makefile.&lt;br /&gt;
#&lt;br /&gt;
ifeq ($(GARCH),linux)&lt;br /&gt;
    G_COMPILER ?= gcc4&lt;br /&gt;
endif&lt;br /&gt;
ifeq ($(GARCH),WIN32)&lt;br /&gt;
    G_COMPILER ?= cl9&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# The project name is used to create directory names.  For consistency&lt;br /&gt;
# make this the same name as the top level directory for the project.&lt;br /&gt;
#&lt;br /&gt;
PROJECT = marklar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# For a project with subdirectories the PROJECT_HOME variable is the path&lt;br /&gt;
# of the top level directory in the project.  In a simple project there&lt;br /&gt;
# is only the top level directory and this setting is not needed.&lt;br /&gt;
#&lt;br /&gt;
PROJECT_HOME = $(realpath ./)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# This is the name of the generated executable file.&lt;br /&gt;
# There can be more than one program listed per directory.&lt;br /&gt;
#&lt;br /&gt;
PROGRAM = myProgram&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# For each program with C++ sources set a variable using the program name.&lt;br /&gt;
# By convention the source file containing the &amp;quot;main&amp;quot; entry point has the&lt;br /&gt;
# same name as the program.&lt;br /&gt;
#&lt;br /&gt;
CXXmyProgram = myProgram.cpp   mySubroutine.cpp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# For each program with C sources set a variable using the program name.&lt;br /&gt;
#&lt;br /&gt;
CmyProgram = myUtility.c&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# The libraries g3d, vrg3d, and cg have preset declarations to make them&lt;br /&gt;
# easy to set up.&lt;br /&gt;
#&lt;br /&gt;
G_USE = vrg3d&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If you want to link with libraries built using the G Build make files&lt;br /&gt;
# use the LDLIB_VER variable.  This ensures you will link against the&lt;br /&gt;
# version that was built with the same compiler as your program.&lt;br /&gt;
#&lt;br /&gt;
LDLIB_VER = is3d  mri   nr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If you want to add some targets other than the defaults&lt;br /&gt;
# use raw make commands.  Note that if you want to make a program&lt;br /&gt;
# installable you need to declare and install target as shown.&lt;br /&gt;
#&lt;br /&gt;
all:  directory&lt;br /&gt;
&lt;br /&gt;
allclean:  clean&lt;br /&gt;
&lt;br /&gt;
install:  installprog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# This brings in the G Build make files and is required.&lt;br /&gt;
#&lt;br /&gt;
include  $(G)/common/build/make/directory.make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brad Berg</name></author>
	</entry>
</feed>