From 6b7413a72620b915c97243a9e38318c021845a02 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 21 Jul 2019 01:52:59 -0500 Subject: [PATCH] Add ccache --- account/Makefile | 2 ++ app_controldata/Makefile | 2 ++ applet/app-playstats/Makefile | 2 ++ applet/libapplets/error/Makefile | 3 ++- applet/libapplets/pctlauth/Makefile | 3 ++- applet/libapplets/software-keyboard/Makefile | 2 ++ applet/libapplets/web/Makefile | 2 ++ applet/light-sensor/Makefile | 2 ++ applet/lockexit/Makefile | 2 ++ applet/recording/Makefile | 2 ++ applet/screenshot-overlay/Makefile | 2 ++ applet/vrmode/Makefile | 2 ++ audio/audren-simple/Makefile | 2 ++ audio/echo/Makefile | 2 ++ audio/hwopus-decoder/Makefile | 2 ++ audio/playtone/Makefile | 2 ++ audio/sdl2-audio/Makefile | 2 ++ exception-handler/Makefile | 2 ++ fs/romfs/Makefile | 2 ++ fs/save/Makefile | 2 ++ fs/sdmc/Makefile | 3 +++ graphics/opengl/dynamic_resolution/Makefile | 2 ++ graphics/opengl/es2gears/Makefile | 2 ++ graphics/opengl/gpu_console/Makefile | 2 ++ graphics/opengl/lenny/Makefile | 2 ++ graphics/opengl/simple_triangle/Makefile | 2 ++ graphics/opengl/textured_cube/Makefile | 2 ++ graphics/printing/hello-world/Makefile | 2 ++ graphics/printing/vt52-demo/Makefile | 2 ++ graphics/sdl2/sdl2-simple/Makefile | 2 ++ graphics/shared_font/Makefile | 2 ++ graphics/simplegfx/Makefile | 2 ++ hid/abstracted-pad/Makefile | 2 ++ hid/colors/Makefile | 2 ++ hid/hdls/Makefile | 2 ++ hid/irsensor/Makefile | 2 ++ hid/notification-led/Makefile | 2 ++ hid/read-controls/Makefile | 2 ++ hid/sixaxis/Makefile | 2 ++ hid/touch-screen/Makefile | 2 ++ hid/vibration/Makefile | 2 ++ jit/Makefile | 2 ++ misc/barrier/Makefile | 2 ++ misc/user_events/Makefile | 2 ++ misc/user_timers/Makefile | 2 ++ network/nxlink_stdio/Makefile | 2 ++ nfc/Makefile | 2 ++ settings/get_system_language/Makefile | 2 ++ templates/application/Makefile | 2 ++ templates/library/Makefile | 3 +++ templates/sysmodule/Makefile | 2 ++ time/Makefile | 2 ++ usb/usbhs/Makefile | 2 ++ 53 files changed, 108 insertions(+), 2 deletions(-) diff --git a/account/Makefile b/account/Makefile index 2a807a9..4836dcb 100644 --- a/account/Makefile +++ b/account/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/app_controldata/Makefile b/app_controldata/Makefile index 2a807a9..4836dcb 100644 --- a/app_controldata/Makefile +++ b/app_controldata/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/app-playstats/Makefile b/applet/app-playstats/Makefile index 2a807a9..4836dcb 100644 --- a/applet/app-playstats/Makefile +++ b/applet/app-playstats/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/libapplets/error/Makefile b/applet/libapplets/error/Makefile index 2a807a9..2340cdc 100644 --- a/applet/libapplets/error/Makefile +++ b/applet/libapplets/error/Makefile @@ -60,7 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/applet/libapplets/pctlauth/Makefile b/applet/libapplets/pctlauth/Makefile index 2a807a9..2340cdc 100644 --- a/applet/libapplets/pctlauth/Makefile +++ b/applet/libapplets/pctlauth/Makefile @@ -60,7 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/applet/libapplets/software-keyboard/Makefile b/applet/libapplets/software-keyboard/Makefile index 2a807a9..4836dcb 100644 --- a/applet/libapplets/software-keyboard/Makefile +++ b/applet/libapplets/software-keyboard/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/libapplets/web/Makefile b/applet/libapplets/web/Makefile index 1bcff62..8b93feb 100644 --- a/applet/libapplets/web/Makefile +++ b/applet/libapplets/web/Makefile @@ -54,6 +54,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/light-sensor/Makefile b/applet/light-sensor/Makefile index 2a807a9..4836dcb 100644 --- a/applet/light-sensor/Makefile +++ b/applet/light-sensor/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/lockexit/Makefile b/applet/lockexit/Makefile index 2a807a9..4836dcb 100644 --- a/applet/lockexit/Makefile +++ b/applet/lockexit/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/recording/Makefile b/applet/recording/Makefile index 2a807a9..4836dcb 100644 --- a/applet/recording/Makefile +++ b/applet/recording/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/screenshot-overlay/Makefile b/applet/screenshot-overlay/Makefile index 2a807a9..4836dcb 100644 --- a/applet/screenshot-overlay/Makefile +++ b/applet/screenshot-overlay/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/applet/vrmode/Makefile b/applet/vrmode/Makefile index 2a807a9..4836dcb 100644 --- a/applet/vrmode/Makefile +++ b/applet/vrmode/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/audio/audren-simple/Makefile b/audio/audren-simple/Makefile index 2a807a9..4836dcb 100644 --- a/audio/audren-simple/Makefile +++ b/audio/audren-simple/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/audio/echo/Makefile b/audio/echo/Makefile index 0b369e6..3e867fd 100644 --- a/audio/echo/Makefile +++ b/audio/echo/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx -lm +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/audio/hwopus-decoder/Makefile b/audio/hwopus-decoder/Makefile index 8b22e5e..2424a3d 100644 --- a/audio/hwopus-decoder/Makefile +++ b/audio/hwopus-decoder/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx `aarch64-none-elf-pkg-config --libs opusfile` +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/audio/playtone/Makefile b/audio/playtone/Makefile index 0b369e6..3e867fd 100644 --- a/audio/playtone/Makefile +++ b/audio/playtone/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx -lm +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/audio/sdl2-audio/Makefile b/audio/sdl2-audio/Makefile index 808d038..372aa80 100644 --- a/audio/sdl2-audio/Makefile +++ b/audio/sdl2-audio/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := `aarch64-none-elf-pkg-config --libs SDL2_mixer` +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/exception-handler/Makefile b/exception-handler/Makefile index 2a807a9..4836dcb 100644 --- a/exception-handler/Makefile +++ b/exception-handler/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/fs/romfs/Makefile b/fs/romfs/Makefile index 629eac6..ea8d21a 100644 --- a/fs/romfs/Makefile +++ b/fs/romfs/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/fs/save/Makefile b/fs/save/Makefile index 2a807a9..4836dcb 100644 --- a/fs/save/Makefile +++ b/fs/save/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/fs/sdmc/Makefile b/fs/sdmc/Makefile index 2a807a9..be045e0 100644 --- a/fs/sdmc/Makefile +++ b/fs/sdmc/Makefile @@ -60,6 +60,9 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) + #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/opengl/dynamic_resolution/Makefile b/graphics/opengl/dynamic_resolution/Makefile index 465e70c..1943cc1 100644 --- a/graphics/opengl/dynamic_resolution/Makefile +++ b/graphics/opengl/dynamic_resolution/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lglad -lEGL -lglapi -ldrm_nouveau -lnx -lm +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/opengl/es2gears/Makefile b/graphics/opengl/es2gears/Makefile index 01571a1..d683db3 100644 --- a/graphics/opengl/es2gears/Makefile +++ b/graphics/opengl/es2gears/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lnx -lm +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/opengl/gpu_console/Makefile b/graphics/opengl/gpu_console/Makefile index de3d71d..2c01e99 100644 --- a/graphics/opengl/gpu_console/Makefile +++ b/graphics/opengl/gpu_console/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lglad -lEGL -lglapi -ldrm_nouveau -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/opengl/lenny/Makefile b/graphics/opengl/lenny/Makefile index 465e70c..1943cc1 100644 --- a/graphics/opengl/lenny/Makefile +++ b/graphics/opengl/lenny/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lglad -lEGL -lglapi -ldrm_nouveau -lnx -lm +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/opengl/simple_triangle/Makefile b/graphics/opengl/simple_triangle/Makefile index de3d71d..2c01e99 100644 --- a/graphics/opengl/simple_triangle/Makefile +++ b/graphics/opengl/simple_triangle/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lglad -lEGL -lglapi -ldrm_nouveau -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/opengl/textured_cube/Makefile b/graphics/opengl/textured_cube/Makefile index 362a208..ed04e5c 100644 --- a/graphics/opengl/textured_cube/Makefile +++ b/graphics/opengl/textured_cube/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lglad -lEGL -lglapi -ldrm_nouveau -lnx -lm +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/printing/hello-world/Makefile b/graphics/printing/hello-world/Makefile index 2a807a9..4836dcb 100644 --- a/graphics/printing/hello-world/Makefile +++ b/graphics/printing/hello-world/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/printing/vt52-demo/Makefile b/graphics/printing/vt52-demo/Makefile index 2a807a9..4836dcb 100644 --- a/graphics/printing/vt52-demo/Makefile +++ b/graphics/printing/vt52-demo/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/sdl2/sdl2-simple/Makefile b/graphics/sdl2/sdl2-simple/Makefile index 1eb4f3e..ee59759 100644 --- a/graphics/sdl2/sdl2-simple/Makefile +++ b/graphics/sdl2/sdl2-simple/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := `sdl2-config --libs` +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/shared_font/Makefile b/graphics/shared_font/Makefile index 05234af..33370f6 100644 --- a/graphics/shared_font/Makefile +++ b/graphics/shared_font/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := `freetype-config --libs` +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/graphics/simplegfx/Makefile b/graphics/simplegfx/Makefile index 2a807a9..4836dcb 100644 --- a/graphics/simplegfx/Makefile +++ b/graphics/simplegfx/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/abstracted-pad/Makefile b/hid/abstracted-pad/Makefile index 2a807a9..4836dcb 100644 --- a/hid/abstracted-pad/Makefile +++ b/hid/abstracted-pad/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/colors/Makefile b/hid/colors/Makefile index 2a807a9..4836dcb 100644 --- a/hid/colors/Makefile +++ b/hid/colors/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/hdls/Makefile b/hid/hdls/Makefile index 2a807a9..4836dcb 100644 --- a/hid/hdls/Makefile +++ b/hid/hdls/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/irsensor/Makefile b/hid/irsensor/Makefile index 2a807a9..4836dcb 100644 --- a/hid/irsensor/Makefile +++ b/hid/irsensor/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/notification-led/Makefile b/hid/notification-led/Makefile index 2a807a9..4836dcb 100644 --- a/hid/notification-led/Makefile +++ b/hid/notification-led/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/read-controls/Makefile b/hid/read-controls/Makefile index 2a807a9..4836dcb 100644 --- a/hid/read-controls/Makefile +++ b/hid/read-controls/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/sixaxis/Makefile b/hid/sixaxis/Makefile index 2a807a9..4836dcb 100644 --- a/hid/sixaxis/Makefile +++ b/hid/sixaxis/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/touch-screen/Makefile b/hid/touch-screen/Makefile index 2a807a9..4836dcb 100644 --- a/hid/touch-screen/Makefile +++ b/hid/touch-screen/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/hid/vibration/Makefile b/hid/vibration/Makefile index 2a807a9..4836dcb 100644 --- a/hid/vibration/Makefile +++ b/hid/vibration/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/jit/Makefile b/jit/Makefile index 2a807a9..4836dcb 100644 --- a/jit/Makefile +++ b/jit/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/misc/barrier/Makefile b/misc/barrier/Makefile index 2a807a9..4836dcb 100644 --- a/misc/barrier/Makefile +++ b/misc/barrier/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/misc/user_events/Makefile b/misc/user_events/Makefile index 2a807a9..4836dcb 100644 --- a/misc/user_events/Makefile +++ b/misc/user_events/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/misc/user_timers/Makefile b/misc/user_timers/Makefile index 2a807a9..4836dcb 100644 --- a/misc/user_timers/Makefile +++ b/misc/user_timers/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/network/nxlink_stdio/Makefile b/network/nxlink_stdio/Makefile index 2a807a9..4836dcb 100644 --- a/network/nxlink_stdio/Makefile +++ b/network/nxlink_stdio/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/nfc/Makefile b/nfc/Makefile index 2a807a9..4836dcb 100644 --- a/nfc/Makefile +++ b/nfc/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/settings/get_system_language/Makefile b/settings/get_system_language/Makefile index 2a807a9..4836dcb 100644 --- a/settings/get_system_language/Makefile +++ b/settings/get_system_language/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/templates/application/Makefile b/templates/application/Makefile index 2a807a9..4836dcb 100644 --- a/templates/application/Makefile +++ b/templates/application/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/templates/library/Makefile b/templates/library/Makefile index e4e69b0..d6a568c 100644 --- a/templates/library/Makefile +++ b/templates/library/Makefile @@ -57,6 +57,9 @@ CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) + #--------------------------------------------------------------------------------- # use CXX for linking C++ projects, CC for standard C #--------------------------------------------------------------------------------- diff --git a/templates/sysmodule/Makefile b/templates/sysmodule/Makefile index 2a807a9..4836dcb 100644 --- a/templates/sysmodule/Makefile +++ b/templates/sysmodule/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/time/Makefile b/time/Makefile index 2a807a9..4836dcb 100644 --- a/time/Makefile +++ b/time/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/usb/usbhs/Makefile b/usb/usbhs/Makefile index 2a807a9..4836dcb 100644 --- a/usb/usbhs/Makefile +++ b/usb/usbhs/Makefile @@ -60,6 +60,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing