title: Why is my Makefile not creating my .o file C++
body: <p>My professor assigned a programming assignment and gave us the Makefile to build it. The problem is when I build it, it diplays this message </p>
  
  <pre><code>g++: error: SortedListArrayDriver.o: No such file or directory
  Makefile:22: recipe for target 'SA' failed
  mingw32-make: *** [SA] Error 1
  </code></pre>
  
  <p>Here is the makefile that he has provided for us</p>
  
  <pre><code>AutomatedMakefile = am
  CC = g++
  CXXFLAGS = -Wno-deprecated-declarations -g -O0
  
  PROJECT_PATH = $(CURRENT_DIR)
  GUI_PATH = $(DRIVE_LETTER)/TDM-GCC-64/wxWidgets-3.1.0
  
  INC_DIRS = -I./1310/CSC1310 -I./1310/GUI -I$(GUI_PATH)/include -
  I$(GUI_PATH)/lib/gcc510TDM_x64_dll/mswu
  LIB_DIRS = -L./1310/CSC1310 -L./1310/GUI -L$(GUI_PATH)/lib/gcc510TDM_x64_dll
  LDFLAGS = -Wl,-Bstatic
  LIBS = $(LDFLAGS) -lCSC1310 -lrandom -lGUI -lwxmsw31u_core -lwxbase31u -
  lgdi32
  
  COMPILE = $(CC) $(CXXFLAGS) $(INC_DIRS) -c 
  LINK = $(CC) $(CXXFLAGS) $(LIB_DIRS)
  
  FILES1 =SortedListArrayDriver.o
  EXECUTABLE1 = SLADriver.exe
  
  all: SA
  
  SA:  $(FILES)
   $(LINK) $(FILES1) $(LIBS) -o $(EXECUTABLE1)
  
  SortedListArrayDriver.o: SortedListArray.h
      $(COMPILE) SortedListArrayDriver.cpp
  </code></pre>
  
  <p>I really don't know what i'm doing wrong and any help would be appreciated</p>