title: make: Circular dependency dropped
body: <p>I've already searched a long time on stackoverflow and other make manuals, websites but cannot find any trailing whitespace or miss usage in make functions. Can you help me solve this warning message ?</p>
  
  <pre><code>make: Circular main.asm.o &lt;- main.asm dependency dropped.
  </code></pre>
  
  <p>Makefile:</p>
  
  <pre><code>AS:=yasm
  CC:=gcc
  OUTPUTDIR:=$(shell pwd)/bin
  ASFLAGS:=-g dwarf2 -f elf64 -a x86
  CFLAGS:=-g
  
  SOURCES=$(wildcard *.asm)
  OBJECTS=$(patsubst %.asm,%.o,$(SOURCES))
  
  %.o: $(SOURCES)
      $(AS) $(ASFLAGS) -o $(OUTPUTDIR)/$(OBJECTS) $&lt;
  
  all: $(OBJECTS)
      $(CC) $(CFLAGS) -o httpd $(OUTPUTDIR)/$(OBJECTS)
  
  clean:
      rm $(OUTPUTDIR)/*
      rm httpd
  </code></pre>
  
  <p>main.asm:</p>
  
  <pre><code>section .text
    global main
    extern exit
  
  main:
    mov rdi, 1
      call exit   
  </code></pre>
  
  <p>thanks you :)</p>