Index: /issm/trunk-jpl/src/py/modules/hello/Makefile
===================================================================
--- /issm/trunk-jpl/src/py/modules/hello/Makefile	(revision 11796)
+++ /issm/trunk-jpl/src/py/modules/hello/Makefile	(revision 11797)
@@ -1,14 +1,11 @@
-all: ice
-
-ice:
-	g++ -bundle  -bind \
-		-I$(ISSM_TIER)/externalpackages/boost/install/include \
-		-I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m\
-		-L$(ISSM_TIER)/externalpackages/boost/install/lib -lboost_python \
-		-L/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m/ -lpython3.2 \
-		hellomodule.cpp -o hello.so
+all: hello_ext.so
 
 
+hello.o: hello.cpp 
+	g++  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -dynamic -no-cpp-precomp -gdwarf-2 -fexceptions -fPIC -I$(ISSM_TIER)/externalpackages/boost/install/include  -I$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/include/python3.2 -c -o hello.o hello.cpp
+
+hello_ext.so: hello.o
+	g++ -headerpad_max_install_names -g -dynamiclib -Wl,-single_module -install_name hello_ext.so  -o hello_ext.so  hello.o -L$(ISSM_TIER)/externalpackages/boost/install/lib -lboost_python -L$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/lib -L$(ISSM_TIER)/externalpackages/python/install/Python.framework/Versions/3.2/lib/python3.2/config -lpython3.2    
 
 clean:
-	rm hello.so
+	rm hello_ext.so hello.o
Index: /issm/trunk-jpl/src/py/modules/hello/hello.cpp
===================================================================
--- /issm/trunk-jpl/src/py/modules/hello/hello.cpp	(revision 11797)
+++ /issm/trunk-jpl/src/py/modules/hello/hello.cpp	(revision 11797)
@@ -0,0 +1,20 @@
+//  Copyright Joel de Guzman 2002-2004. Distributed under the Boost
+//  Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt
+//  or copy at http://www.boost.org/LICENSE_1_0.txt)
+//  Hello World Example from the tutorial
+//  [Joel de Guzman 10/9/2002]
+
+#include <boost/python/module.hpp>
+#include <boost/python/def.hpp>
+
+char const* greet()
+{
+   return "hello, world";
+}
+
+BOOST_PYTHON_MODULE(hello_ext)
+{
+    using namespace boost::python;
+    def("greet", greet);
+}
+
Index: sm/trunk-jpl/src/py/modules/hello/hellomodule.cpp
===================================================================
--- /issm/trunk-jpl/src/py/modules/hello/hellomodule.cpp	(revision 11796)
+++ 	(revision )
@@ -1,14 +1,0 @@
-#include <iostream>
-using namespace std; 
-void say_hello(const char* name) {
-	    cout << "Hello " <<  name << "!\n";
-}
-
-#include <boost/python/module.hpp>
-#include <boost/python/def.hpp>
-using namespace boost::python;
-
-BOOST_PYTHON_MODULE(hello)
-{
-	    def("say_hello", say_hello);
-}
