Toast the whole spices in a dry skillet over medium-high heat until very fragrant. Be careful not to scorch the spices or they will become bitter. Remove from heat and let cool completely. Grind the spices in a coffee/spice grinder, blender or with a mortar and pestle. Store in an airtight container until ready to use.