Add extra build flags to Makefiles