Cook the carrot, onion, and celery until soft, then add the garlic and spices and cook for 1 minute. Add the flour and cook for 2 minutes.