Move LDFLAGS to top of Makefiles