mwrysz
10-03-2008, 07:47 PM
Hi,
Could anyone please tell me how to convert the f77 makefile below to a pgf90. I replace the "f77" with "pgf90", but it doesn't work. Also, pgf90 doesn't have a switch -a. When I take out -a the makefile only compiles the fist .f (main.f) therefore, I only have main.o and not the others. Here is the file and thank you for your time:
opts = -c -a -w -C -O3
files=main.f\
f_cond.f\
assign2d_dxm.f\
objs= main.o\
f_cond.o\
assign2d_dxm.o\
LIBS = -lftn
hrefine: $(objs)
f77 -a -w -C -O3 -okalt9Model3 $(objs)
.f.o: parameter.h
f77 $(opts) $<
Could anyone please tell me how to convert the f77 makefile below to a pgf90. I replace the "f77" with "pgf90", but it doesn't work. Also, pgf90 doesn't have a switch -a. When I take out -a the makefile only compiles the fist .f (main.f) therefore, I only have main.o and not the others. Here is the file and thank you for your time:
opts = -c -a -w -C -O3
files=main.f\
f_cond.f\
assign2d_dxm.f\
objs= main.o\
f_cond.o\
assign2d_dxm.o\
LIBS = -lftn
hrefine: $(objs)
f77 -a -w -C -O3 -okalt9Model3 $(objs)
.f.o: parameter.h
f77 $(opts) $<