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