make PCHOBJ depend on CPPOBJS for simulator

make clean simulator remove pch
This commit is contained in:
David Holdeman 2024-03-12 20:46:28 -05:00 committed by rusefillc
parent 2e71050428
commit 15d53bb3c3
2 changed files with 6 additions and 3 deletions

View File

@ -19,8 +19,9 @@ endif
# the deps for that .o file in the same GCC call, so if the .deps aren't already
# in the correct state, things can fail to build because Make doesn't know it needs
# to build the prerequisites (in this case PCHOBJ) for those files ahead of time.
$(TCPPOBJS) : $(PCHOBJ)
$(ACPPOBJS) : $(PCHOBJ)
$(TCPPOBJS): $(PCHOBJ)
$(ACPPOBJS): $(PCHOBJ)
$(CPPOBJS): $(PCHOBJ)
# Delete PCH output on clean
CLEAN_PCH_HOOK:

View File

@ -298,7 +298,9 @@ endif
# Enable precompiled header
include $(PROJECT_DIR)/rusefi_pch.mk
CLEAN_RULE_HOOK:
.PHONY: CLEAN_RULE_HOOK CLEAN_PCH_HOOK
CLEAN_RULE_HOOK: CLEAN_PCH_HOOK
@echo Cleaning Simulator
rm -rf build
rm -rf .dep