carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/getting_started/make_example.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">
<head>
	<meta http-equiv="Content-Language" content="en-us">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>C++ Makefile example</title>
</head>
<body bgcolor="#ffffcc">
<font color="#0066ff">Copy the script below and paste it into the <b>makefile</b> file in the Editor view:</font>

<pre>
all: hello

clean:
	-rm main.o hello.exe hello

hello: main.o
	g++ -g -o hello main.o

main.o: main.cpp
	g++ -c -g main.cpp

</pre>

</body>
</html>