问题
I have noticed that in Implicit Rules in Gnu Make is variable $(TARGET_ARCH) for example :
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
I supposed that this variable is needed for cross compilation, but I haven't found any information about it in Gnu Make documentation.
回答1:
I agree that it's probably meant for cross-compilation. The variable TARGET_ARCH has no default value - it's there for end-users to define as they see fit.
来源:https://stackoverflow.com/questions/18476490/what-is-purpose-of-target-arch-variable-in-makefiles