Makefile: use target-specific variable to pass flags to cc