If using whole cloves, cinnamon sticks, star anise and such, grind them in a coffee grinder, blender or mortar.
Mix all the spices together in a small bowl and transfer mixture to a spice jar or any other airtight container.