title: Makefile- not outputting the executable
body: <p>I'm new to makefile. I'm not sure why the executable 'main' does not appear after compilation. The code compiles fine, but compiler says:</p>
  
  <pre><code>-lm: linker input file unused because linking not done
  
  -ltiff: linker input file unused because linking not done
  </code></pre>
  
  <p>Below is the makefile code:</p>
  
  <pre><code>INCLUDES = -I. -I../include -I/opt/local/include
  CC = gcc
  OBJS = image_io.o textfile_io.o main.o
  CFLAGS = $(INCLUDES) -c -g
  DESTDIR = ../bin
  LDFLAGS = -L. -L../lib -L/opt/local/lib -lm
  DEPS = file_io.h corr.h nmsimplex.h matrix.h /opt/local/include/tiffio.h \
         /opt/local/include/tiff.h
  
  image_io.o: image_io.c file_io.h /opt/local/include/tiffio.h \
                 /opt/local/include/tiff.h
      $(CC) $(CFLAGS) -o $@ $&lt; $(LDFLAGS) -ltiff
  
  textfile_io.o: textfile_io.c file_io.h
      $(CC) $(CFLAGS) -o $@ $&lt; $(LDFLAGS)
  
  main.o: main.c file_io.h nmsimplex.h corr.h
      $(CC) $(CFLAGS) -o $@ -fopenmp $&lt; $(LDFLAGS)
  
  main: $(OBJS)
      $(CC) -o $(DESTDIR)/$@ -fopenmp $^ $(LDFLAGS)
  
  .PHONY: clean
  clean:
      rm -f *.o *~
  </code></pre>
  
  <p>Thank you</p>