title: How to add headers to a Makefile?
body: <p>I have the following <code>Makefile</code>. <strong>How to add also some header files</strong> that I have in the project folder (e.g. <code>header1.h</code> with its relative <code>header1.c</code>) ? </p>
  
  <pre><code>CC := gcc
  CFLAGS := -Wall -Wextra -Wpedantic -O3
  CFILES := $(shell ls *.c)
  PROGS := $(CFILES:%.c=%)
  
  all: $(PROGS)
  
  .PHONY: all clean
  clean:
      rm -f *~ $(PROGS)
  </code></pre>
  
  <p>Even adding them one by one would be ok (no need to use the wildcard).</p>
  
  <p>I suppose I should edit the following line:</p>
  
  <pre><code>CFILES := $(shell ls *.c)
  </code></pre>
  
  <p>But <strong>how</strong>?</p>