Makefile.in 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # StarPU
  3. # Copyright (C) INRIA 2008-2009 (see AUTHORS file)
  4. #
  5. # This program 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. # This program 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. export PKG_CONFIG_PATH=@STARPUDIR@
  17. LIBS+=$$(pkg-config --libs libstarpu)
  18. CFLAGS+=$$(pkg-config --cflags libstarpu)
  19. LDFLAGS+= ../common/blas.o
  20. all: dw_strassen
  21. strassen_kernels.o: strassen.h strassen_kernels.c
  22. $(CC) $(CFLAGS) strassen_kernels.c -c -o strassen_kernels.o
  23. strassen.o: strassen.h strassen.c
  24. $(CC) $(CFLAGS) strassen.c -c -o strassen.o
  25. test_strassen.o: test_strassen.c strassen.h
  26. $(CC) $(CFLAGS) test_strassen.c -c -o test_strassen.o
  27. strassen_models.o: strassen_models.c strassen_models.h
  28. $(CC) $(CFLAGS) strassen_models.c -c -o strassen_models.o
  29. dw_strassen: $(STARPU) strassen_models.o strassen.o strassen_kernels.o test_strassen.o ../common/blas.o
  30. $(CC) strassen_models.o strassen.o strassen_kernels.o test_strassen.o -o dw_strassen $(LDFLAGS) $(LIBS)
  31. clean:
  32. @rm -f *.o *.d *.gcno *.gcda
  33. @rm -f dw_strassen