Browse Source

- update example Makefile rules

Olivier Aumage 8 years ago
parent
commit
5235d1e1cf
1 changed files with 3 additions and 2 deletions
  1. 3 2
      examples/native_fortran/Makefile

+ 3 - 2
examples/native_fortran/Makefile

@@ -15,7 +15,7 @@
 
 
 PROG = native_fortran_example
 PROG = native_fortran_example
 
 
-FSTARPU_MOD = $(shell pkg-config --cflags-only-I starpu-1.3|sed -e 's/ *$$//;s/^.* //;s/^-I//')/fstarpu_mod.f90
+FSTARPU_MOD = $(shell pkg-config --cflags-only-I starpu-1.3|sed -e 's/^\([^ ]*starpu\/1.3\).*$$/\1/;s/^.* //;s/^-I//')/fstarpu_mod.f90
 
 
 SRCSF = native_fortran_example.f90		\
 SRCSF = native_fortran_example.f90		\
 	codelets.f90
 	codelets.f90
@@ -47,4 +47,5 @@ fstarpu_mod.o: $(FSTARPU_MOD)
 clean:
 clean:
 	rm -fv *.o *.mod $(PROG)
 	rm -fv *.o *.mod $(PROG)
 
 
-native_fortran_example.o: native_fortran_example.f90 codelets.o
+native_fortran_example.o: native_fortran_example.f90 codelets.o fstarpu_mod.o
+codelets.o: fstarpu_mod.o