title: Creating a makefile C using all, clean, and other
body: <p>My professor gave me a code that he already wrote and we had to fill in the rest. Now our task is to create a makefile using multiple targets. These are the directions: </p>
  
  <p>"3. Create a Makefile to create your project. Your makefile should have the following targets (put all at the top)</p>
  
  <p>a.).all Creates all object files and executable files</p>
  
  <p>b.).Wall.o Builds the Wall.o object file from Wall.c</p>
  
  <p>c.).Maze.o Builds the Maze.o object file from Maze.c</p>
  
  <p>d.).DisjointSetADT.o Builds theDisjointSetADT.o object file from DisjointSetADT.c</p>
  
  <p>e.).MazeBuilder.o Builds the MazeBuilder.o object file fromMazeBuilder.c</p>
  
  <p>f.).MazeBuilder Builds the MazeBuilder executable from all object files</p>
  
  <p>g.).clean Deletes all object files and executable files."</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>all: MazeBuilder
  
  Wall.o: Wall.c
      gcc -c -Wall Wall.c
  
  Maze.o: Maze.c
      gcc -c -Wall Maze.c
  
  DisjointSetADT.o: DisjointSetADT.c
      gcc -c -Wall DisjointSetADT.c
  
  MazeBuilder.o: MazeBuilder.c
      gcc -c -Wall MazeBuilder.c
  
  MazeBuilder: MazeBuilder.o Wall.o Maze.o DisjointSetADT.o 
      gcc MazeBuilder.o Wall.o Maze.o DisjointSetADT.o -o MazeBuilder
  
  clean:
      rm -f *.o MazeBuilder
  </code></pre>
  
  <p>I have no idea why my auto grader says the makefile doesn't work.  There are tabs under each target already, not sure why they are not popping in when I copy my code over.</p>