fixup! fixup! make: Use ccache for faster compilation

This commit is contained in:
JohannesGaessler 2024-02-05 13:03:21 +01:00
parent 51f3a8568b
commit 0c3519912b

View file

@ -627,7 +627,7 @@ clean:
# $< is the first prerequisite, i.e. the source file. # $< is the first prerequisite, i.e. the source file.
# Explicitly compile this to an object file so that it can be cached with ccache. # Explicitly compile this to an object file so that it can be cached with ccache.
# The source file is then filtered out from the list of all prerequisites $^ and the object file is added instead. # The source file is then filtered out from $^ (the list of all prerequisites) and the object file is added instead.
# Helper function that replaces .c, .cpp, and .cu file endings with .o: # Helper function that replaces .c, .cpp, and .cu file endings with .o:
GET_OBJ_FILE = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(patsubst %.cu,%.o,$(1)))) GET_OBJ_FILE = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(patsubst %.cu,%.o,$(1))))