[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help with multiple dependencies in pattern rules
From: |
Noel David Torres Taño |
Subject: |
Help with multiple dependencies in pattern rules |
Date: |
Mon, 8 Feb 2010 14:08:06 +0100 |
User-agent: |
KMail/1.9.9 |
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
signature.asc
Description: This is a digitally signed message part.
- Help with multiple dependencies in pattern rules,
Noel David Torres Taño <=