I noticed that in implicit rules in Gnu Make there is a variable $ (TARGET_ARCH), for example:
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@ LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
I assumed that this variable is necessary for cross-compiling, but I did not find any information about this in the Gnu Make documentation.
makefile gnu-make
Boatx
source share