Build a release project

I was able to successfully build release version with create_project.py project but do not know how to copy the necessary libraries to run in another folder than the cocos2d. How do I change the makefile to get a full release version with the executable and required libraries?