Allowing the user to set LDFLAGS is useful and lacking this ability even triggers some QA warnings on distros such as gentoo.
I also changed $? to $^ which explicitly contains all of the prerequisites (Excluding duplicates) and is more standard. I then removed $(LIBTREE_CFLAGS) from the linker line where it is unneeded.
Allowing the user to set LDFLAGS is useful and lacking this ability even triggers some QA warnings on distros such as gentoo.
I also changed
$?
to$^
which explicitly contains all of the prerequisites (Excluding duplicates) and is more standard. I then removed$(LIBTREE_CFLAGS)
from the linker line where it is unneeded.