carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/getting_started/make_example.htm
changeset 5 684bf18fdedf
equal deleted inserted replaced
4:4764c8c88759 5:684bf18fdedf
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
       
     2 <html lang="en">
       
     3 <head>
       
     4 	<meta http-equiv="Content-Language" content="en-us">
       
     5 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       
     6 	<title>C++ Makefile example</title>
       
     7 </head>
       
     8 <body bgcolor="#ffffcc">
       
     9 <font color="#0066ff">Copy the script below and paste it into the <b>makefile</b> file in the Editor view:</font>
       
    10 
       
    11 <pre>
       
    12 all: hello
       
    13 
       
    14 clean:
       
    15 	-rm main.o hello.exe hello
       
    16 
       
    17 hello: main.o
       
    18 	g++ -g -o hello main.o
       
    19 
       
    20 main.o: main.cpp
       
    21 	g++ -c -g main.cpp
       
    22 
       
    23 </pre>
       
    24 
       
    25 </body>
       
    26 </html>