title: clang: warning: -l*: 'linker' input unused
body: <p>When I compile code using GNU Make I get multiple warnings like:</p>
  
  <pre><code>clang: warning: -lGui: 'linker' input unused
  </code></pre>
  
  <p>This is probably because I have messed something up in my Makefile (below). Can anyone point me toward the problem?</p>
  
  <pre><code>CXX=g++
  CC=g++
  CXXFLAGS=-g -Wall -W -Wshadow -Wcast-qual -Wwrite-strings $(shell root-config --cflags --glibs)
  CPPFLAGS+=-MMD -MP
  LDFLAGS=-g $(shell root-config --ldflags)
  LDLIBS=$(shell root-config --libs)
  
  xSec_x: xSec_x.o xSec.o Analysis.o
  -include xSec_x.d xSec.d Analysis.d
  
  xSec.o: xSec.cpp xSec.h Analysis.h Analysis.cpp
  
  xSec_x.o: xSec_x.cpp xSec.h Analysis.h
  
  clean:
      rm -f @rm -f $(PROGRAMS) *.o *.d
  </code></pre>