Error while creating Build profile

how to create custom build profile. I want to use custom build profile instead #define in my code. In mbed studio there is no JSON template to create it and the path and is there are linking commands to execute.