libmesosphere: precompile mesosphere.hpp

This commit is contained in:
Michael Scire 2020-02-19 01:22:51 -08:00
parent 05a3e95834
commit 30b3825f5c
2 changed files with 15 additions and 2 deletions

View file

@ -87,3 +87,11 @@ endif
ifneq ($(strip $(wildcard source/$(ATMOSPHERE_OS_DIR)/.*)),)
SOURCES += source/$(ATMOSPHERE_OS_DIR) $(call DIR_WILDCARD,source/$(ATMOSPHERE_OS_DIR))
endif
#---------------------------------------------------------------------------------
# Rules for compiling pre-compiled headers
#---------------------------------------------------------------------------------
%.gch: %.hpp
@echo $<
$(CXX) -w -x c++-header -MMD -MP -MF $(DEPSDIR)/$*.d $(CXXFLAGS) -c $< -o $@ $(ERROR_FILTER)
@cp $@ $(<).gch