title: How to run program after compiling with Makefile
body: <p>I have a <code>assign4a.cpp</code>, <code>list.h</code>, and <code>list.cpp</code> file. I compiled them with my make file but don't know what command I would use to run the program.</p>
  
  <p><strong>What I tried to run have tried</strong></p>
  
  <p><code>a.out</code>  and <code>./a.out</code> </p>
  
  <p>both of them give me "Command not found"</p>
  
  <p><strong>Makefile</strong></p>
  
  <pre><code>CFLAGS = -c -Wall -g
  LFLAGS = -g -o assign4a
  
  assign4a: assign4a.o list.o
      g++ assign4a.o list.o $(LFLAGS)
  
  assign4a.o: assign4a.cpp list.h
      g++ $(CFLAGS) assign4a.cpp
  
  list.o: list.cpp list.h
      g++ $(CFLAGS) list.cpp
  
  clean:
      rm -f assign4a *.o *~ *#
  </code></pre>