Hello all

I want to express in a Makefile that all *.o files must be compiled from their 
*.F95 sources, and that all *_m.o files depend on the *.o file (without the 
'_m'). This is because foo_m.F95 includes foo.F95, and thus if either 
foo{,_m}.F95 changes, the foo_m.o must be rebuilt.

I tried using

%.o : %.F95
        $(FC) $(FFLAGS) -o $@ -c $<

%_m.o : %.F95

but the second rule seems to be ignored.

How to achieve that?

Thanks

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to