carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_new_make.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<title>Creating a makefile</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<script language="JavaScript">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
function changeSize(theImage,wd,ht) {
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
	wdth=parseInt(theImage.style.width); hght=parseInt(theImage.style.height);
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
	if ( !(wdth==(wd*2)) ) {wdth=wd*2; hght=ht*2;}
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
	else {wdth=wd;hght=ht;}
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
	theImage.style.width=wdth; theImage.style.height=hght;
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
}
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
</script>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
<h1>Creating a makefile</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
<p>If you have  created a Standard Make C/C++ Project, you need to provide a makefile.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
<p>When you build a project, output from make is displayed in the Console view. Makefile actions are displayed in the Make Targets 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
view.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
<p>To create a makefile:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
  <li>In the <b>C++ Projects</b> view, right-click a project, and select <b>New &gt; File</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
  <img src="../images/project_new_file.png" alt="New &gt; File in Projects View"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
  <li>In the <b>File name</b> box, type <b>makefile</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
  <li>In the list of projects, verify that the correct project is selected.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
  <li>Click <b>Finish</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
  <img src="../images/project_new_file_name.png" alt="New File Wizard"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
   <li>The C/C++ editor opens. Type makefile instructions  in the C/C++ editor.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
  <img src="../images/project_new_makefile.png" alt="Editor view with a sample code"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
  <li>Click <b>File &gt; 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
  Save</b>.</li></ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
<a href="../concepts/cdt_c_makefile.htm">Makefile</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
<a href="cdt_o_proj_files.htm">Working with C/C++ project files</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
<a href="cdt_t_show_proj_files.htm">Displaying C/C++ file components in the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
C/C++ Projects view</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
<a href="cdt_t_prvw_hide_files.htm">Hiding files by type in the C/C++ Projects 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
view</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
<a href="../reference/cdt_o_views.htm">Views</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
<p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" ></body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
</html>