Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. #
  3. # StarPU --- Runtime system for heterogeneous multicore architectures.
  4. #
  5. # Copyright (C) 2014, 2017 Université de Bordeaux
  6. # Copyright (C) 2012 Inria
  7. #
  8. # StarPU is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2.1 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # StarPU is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  18. CFLAGS += $(shell pkg-config --cflags starpu-1.0) -g -O0 -Wall
  19. LDFLAGS += $(shell pkg-config --libs starpu-1.0) -g -O0 -Wall
  20. all: bfs
  21. bfs : bfs.o bfs_omp_func.o
  22. g++ bfs.o bfs_omp_func.o $(CFLAGS) $(LDFLAGS) -fopenmp -O3 -o bfs
  23. bfs.o : bfs.cpp
  24. g++ bfs.cpp $(CFLAGS) -fopenmp -O3 -c -o bfs.o
  25. bfs_omp_func.o : ./bfs_func/bfs_omp_func.cpp
  26. g++ ./bfs_func/bfs_omp_func.cpp $(CFLAGS) -fopenmp -O3 -c -o bfs_omp_func.o
  27. clean:
  28. rm -f bfs *.o *~