Say I want a very simple makefile that includes libraries to link (lets say -lm)
CFLAGS=-Wall -g
LIBS=-lm
How do I get $(LIBS) to the right part of the command without having to manually construct the command inside the makefile and breaking a bunch of the implicit rules?
I couldn’t find anything in the manual
Is it possible to simply replace the implicit rule with one written myself?
Following the link you gave, there’s the
LDFLAGS: