title: linker input file unused because linking not done - gcc
body: <p>I am a beginner in writing makefiles. I have a makefile something like this:</p>
  
  <pre><code>PATH1 = /ref
  
  CC=gcc
  LINK = gcc
  
  INCLUDES = .
  INCLUDES += -I/PATH1/inc \
          -I/$(PATH1)/abc/inc/ \
          -I/$(PATH1)/def/inc/ 
  
  
  all: src_file
  
  run: src_file
  
  src_file: 
      $(CC) $(INCLUDES) -MM  /ref/abcd.c -o $@ 
  
  clean:
      rm -f *.o src_file
  </code></pre>
  
  <p>If I do a make, I get the error:</p>
  
  <pre><code>linker input file unused because linking not done.
  </code></pre>
  
  <p>I read some similar posts in stackoverflow but couldn't get a solution. Could anybody please let me know what's wrong with my makefile? Thanks in advance.</p>