#-----------------------------------------------------------------------------
# C-related suffix rules
-ifeq "$(UseGhcForCc)" "YES"
+# UseGhcForCc is only relevant when not booting from HC files.
+ifeq "$(UseGhcForCc) $(BootingFromHc)" "YES NO"
$(odir_)%.$(way_)o : %.c
@$(RM) $@
% : %.pp
@$(RM) $@
- $(CPP) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@
+ $(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@