I am trying to make a makefile(makeSupersonic) for the following compilation:
> g++ -o supersonic_ob supersonic_ob.C flow_field.C function_declarations.C Boundary.C Time_Step.C -lm
It gives the following error messages when I typeCode:GCOMPILE = g++-4.0 FOPTIONS = CODE = supersonic_ob1 OBJECTS = $(CODE).o flow_field.o Boundary.o Time_step.o function_declarations.o $(CODE): $(OBJECTS) $(GCOMPILE) -o $(CODE) $(FOPTIONS) $(OBJECTS) $*.o: $*.C $(COMPILE)
>./makeSupersonic
./makeSupersonic: line 1: GCOMPILE: command not found
./makeSupersonic: line 2: FOPTIONS: command not found
./makeSupersonic: line 3: CODE: command not found
etc....
Shuo