Makefile_nf_varbuf.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2015-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. #
  5. # StarPU is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # StarPU is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. PROG = nf_varbuf
  17. FSTARPU_MOD = $(shell pkg-config --cflags-only-I starpu-1.3|sed -e 's/^\([^ ]*starpu\/1.3\).*$$/\1/;s/^.* //;s/^-I//')/fstarpu_mod.f90
  18. SRCSF = nf_varbuf_cl.f90 \
  19. nf_varbuf.f90
  20. FC = gfortran
  21. FCFLAGS = -fdefault-real-8 -J. -g
  22. LDLIBS = $(shell pkg-config --libs starpu-1.3)
  23. OBJS = fstarpu_mod.o $(SRCSF:%.f90=%.o)
  24. .phony: all clean
  25. all: $(PROG)
  26. $(PROG): $(OBJS)
  27. $(FC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
  28. fstarpu_mod.o: $(FSTARPU_MOD)
  29. $(FC) $(FCFLAGS) -c -o $@ $<
  30. %.o: %.f90
  31. $(FC) $(FCFLAGS) -c -o $@ $<
  32. clean:
  33. rm -fv *.o *.mod $(PROG)
  34. # modfiles generation dependences
  35. nf_varbuf_cl.o: nf_varbuf_cl.f90 fstarpu_mod.o
  36. nf_varbuf.o: nf_varbuf.f90 nf_types.o fstarpu_mod.o