title: Makefile to compile multiple C programs?
body: <p>This is an incredibly simple question, but I'm new to makefiles. I am trying to make a makefile that will compile two independent programs:</p>
  
  <pre><code>program1:
      gcc -o prog1 program1.c
  
  program2:
      gcc -o prog2 program2.c
  </code></pre>
  
  <p>All the examples online go into way more details than I need and are confusing! All I really want it to do is to run the two <code>gcc</code> lines. What am I doing wrong?</p>