My makefile looks like this:
As you can see, .o files are specified as intermediate elements through the .INTERMEDIATE target. However, after compilation is complete, they are not deleted as expected. Instead, they remain where they were created, cluttering up my source directory.
It is strange that it works fine on another machine. This leads me to believe that this is a different version of make , but man make still shows it as a "GNU make utility."
Why doesn't make delete intermediate files?
EDIT: make -v reports version 3.81.
EDIT: after deleting the .o files (i.e. a blank sheet) make All produces the following output:
g++ -I. -Wall -Wextra -fPIC -g -O4 -c -o Source/File/File.o Source/File/File.cpp g++ -I. -Wall -Wextra -fPIC -g -O4 -c -o Source/Timer/Timer.o Source/Timer/Timer.cpp ar -r -c -s ./Binaries/libAurora.a Source/File/File.o Source/Timer/Timer.o ar -r -c -s ./Binaries/libAurora.so Source/File/File.o Source/Timer/Timer.o
Maxpm source share