i am trying to modifying my makefile so that I can use the gprof profiler. Hwowever the following file doesn,t generate the .o executable.
Code:
supersonic = Impinging_jet_21
OBJECTS = supersonic_ob.o flow_field.o matrix_col.o matrix_square.o matrix_functions.o matrix_derivative.o function_declarations.o output.o explicit.o Time_Step.o Boundary.o
HEADERS = Constants.h flow_field.h function_declarations.h matrix_col.h
ARCH = Linux
CPP = g++
CPPFLAGS = -D$(ARCH) -Wall -Wno-deprecated -pg
LIBRARIES = -lm -lg2c
supersonic: $(OBJECTS) $(HEADERS)
$(CPP) $(CPPFLAGS) -o $(supersonic) $(OBJECTS) $(LIBRARIES)
clean:
rm *.o $(supersonic)
.c.o:
gcc -Wall -pg $<