diff --git a/Makefile b/Makefile index 0ee100df75e7e4532780b36e226ab33c0a1942f4..7360c90a38216f5a1309dc9a83124a338b28746a 100644 --- a/Makefile +++ b/Makefile @@ -81,10 +81,15 @@ debug: CXXFLAGS += -g3 -DDEBUG debug: $(CXX) $(CXXFLAGS) $(SOURCES) -o $(EXECUTABLE)_debug -# make profile - will compile "all" with $(CXXFLAGS) and the -pg flag -profile: CXXFLAGS += -pg +# make profile - will compile "all" with $(CXXFLAGS) and the -g3 and -O3 flags +profile: CXXFLAGS += -g3 -O3 profile: $(CXX) $(CXXFLAGS) $(SOURCES) -o $(EXECUTABLE)_profile + +# make gprof - will compile "all" with $(CXXFLAGS) and the -pg (for gprof) +gprof: CXXFLAGS += -pg +gprof: + $(CXX) $(CXXFLAGS) $(SOURCES) -o $(EXECUTABLE)_profile # make static - will perform static analysis in the matter currently used # on the autograder