Hi,
I want to build something in any con gfortran f90 with such program called test.f90:
Code:
test program
implicit none
write (*,*) 'test'
end
Do I need a Makefile?
If (without a Makefile), I:
As I do for a code f77,
Code:
make: *** No rule to make target "test". Off.
For cons, they write a Makefile:
Code:
# Makefile
FC = gfortran
test: test.o
$ (FC)-o test test.o
test.o: test.f90
$ (FC)-c test.f90
Here, it works. Does someone could explain what I'm doing wrong? I know it's a stupid question and that it poses problems themselves. Thank you very much,
Bookmarks