Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is purpose of TARGET_ARCH variable in Makefiles

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.

like image 518
BoatX Avatar asked Aug 27 '13 22:08

BoatX


1 Answers

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.

like image 93
sager89 Avatar answered Sep 20 '22 13:09

sager89