diff --git a/nx/Makefile b/nx/Makefile index 9f57267c..cd8f57c7 100644 --- a/nx/Makefile +++ b/nx/Makefile @@ -66,10 +66,18 @@ CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) +#--------------------------------------------------------------------------------- +# use CCACHE to improve performance +#--------------------------------------------------------------------------------- + +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) + #--------------------------------------------------------------------------------- # use CXX for linking C++ projects, CC for standard C #--------------------------------------------------------------------------------- ifeq ($(strip $(CPPFILES)),) + #--------------------------------------------------------------------------------- export LD := $(CC) #---------------------------------------------------------------------------------