CC = gcc SRC = src/ CFLAGS = # none ts := $(shell /usr/bin/date "+%d-%m__%H_%M_%S") .DEFAULT_GOAL = MD MD: $(SRC)/MD.cpp $(CC) $(CFLAGS) $(SRC)MD.cpp -lm -O2 -ftree-vectorize -funroll-loops -pg -o ./out/MD MDorig: $(SRC)/MD-original.cpp $(CC) $(CFLAGS) $(SRC)MD-original.cpp -lm -O2 -pg -o ./out/MD-original clean: rm ./out/* gmon.out run: ./out/MD < input/inputdata.txt runorig: ./out/MD-original < input/inputdata.txt gprof: gprof out/MD gmon.out > analysis/$(ts).txt && gprof2dot analysis/$(ts).txt > analysis/$(ts).dot && xdot analysis/$(ts).dot gproforig: gprof out/MD-original gmon.out > analysis/$(ts).txt diff: diff cp_output.txt cp_output-orig.txt runfull: clean MD run