diff --git a/Makefile.3ds b/Makefile.3ds index ea1110e..2070cc8 100644 --- a/Makefile.3ds +++ b/Makefile.3ds @@ -78,6 +78,9 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 ASFLAGS := -g $(ARCH) LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) $(OPTIMIZE) +CC := `which ccache 2>/dev/null` $(CC) +CXX := `which ccache 2>/dev/null` $(CXX) + LIBS := -lcitro3d -lctru -lm #--------------------------------------------------------------------------------- diff --git a/Makefile.nds b/Makefile.nds index eab97a3..f8c8899 100644 --- a/Makefile.nds +++ b/Makefile.nds @@ -52,6 +52,9 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) $(OPTIMIZE) +CC := `which ccache 2>/dev/null` $(CC) +CXX := `which ccache 2>/dev/null` $(CXX) + #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project (order is important) #--------------------------------------------------------------------------------- diff --git a/Makefile.switch b/Makefile.switch index 4ade59a..1f9005f 100644 --- a/Makefile.switch +++ b/Makefile.switch @@ -82,6 +82,9 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) \ $(OPTIMIZE) -Wl,-Map,$(notdir $*.map) -Wl,--gc-sections +CC := `which ccache 2>/dev/null` $(CC) +CXX := `which ccache 2>/dev/null` $(CXX) + LIBS := `$(PREFIX)pkg-config --libs libzstd` -ldeko3dd -lnx #---------------------------------------------------------------------------------