blob: 720936a60c2b28ed824b974c3c2e733c2e6ee601 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../help.css">
<title>Creating your makefile</title>
</head>
<body>
<h1>Creating your makefile</h1>
<p>For the purpose of this tutorial, you were instructed to create a Remote Makefile Project which requires you to create a makefile.</p>
<p>To create a makefile:</p>
<ol>
<li>In the <b>Project Explorer</b> view, right-click a project, and select <b>New &gt; File</b>.<br>
<img src="../../images/create_makefile_01.png" alt="New &gt; File in Project Explorer View"></li>
<li>In the <b>File name</b> box, type <b>makefile</b>.</li>
<li>In the list of projects, verify that the correct project is selected.</li>
<li>Click <b>Finish</b>.<br>
<img src="../../images/create_makefile_02.png" alt="New File Wizard"></li>
<li>The editor opens. Type the gnu make instructions in the editor. Lines are
indented with tab characters, not with spaces.<br>
<img src="../../images/create_makefile_03.png" alt="Editor view with a sample code"></li>
<li>Click <b>File &gt;
Save</b>.</li></ol>
<p>Your new makefile, along with your C++ file are
displayed in the <b>Project Explorer</b> view . Your project now
contains a C++ file and makefile. You can now build your newly created project.</p>
<br>
<b>Related tasks</b>
<br>
<a href="../tasks/creating_makefile.html">Creating a makefile</a>
<br>
<br>
</body>
</html>