This is an example showing how to connect to the access point and send a simple http post/get request to the web server. In order to compile and burn the program i have used esp-open-sdk and esptool.py from espressif. More details about how to build a project you can find here and here
If you had done all of it just copy the project and change the path to common.mk file ... include your_path/common.mk ...