Makefile.in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. BLASOBJ=../common/blas.o ../common/blas_model.o
  20. all: dw_mult dw_mult_no_stride dw_mult_no_stride_no_tag
  21. dw_mult.o: dw_mult.c dw_mult.h
  22. $(CC) $(CFLAGS) dw_mult.c -c -o dw_mult.o
  23. dw_mult_no_stride.o: dw_mult_no_stride.c dw_mult.h
  24. $(CC) $(CFLAGS) dw_mult_no_stride.c -c -o dw_mult_no_stride.o
  25. dw_mult_no_stride_no_tag.o: dw_mult_no_stride_no_tag.c dw_mult.h
  26. $(CC) $(CFLAGS) dw_mult_no_stride_no_tag.c -c -o dw_mult_no_stride_no_tag.o
  27. dw_mult: $(BLASOBJ) dw_mult.o
  28. $(CC) $(BLASOBJ) dw_mult.o -o dw_mult $(LDFLAGS) $(LIBS)
  29. dw_mult_no_stride: $(BLASOBJ) dw_mult_no_stride.o
  30. $(CC) $(BLASOBJ) dw_mult_no_stride.o -o dw_mult_no_stride $(LDFLAGS) $(LIBS)
  31. dw_mult_no_stride_no_tag: $(BLASOBJ) dw_mult_no_stride_no_tag.o
  32. $(CC) $(BLASOBJ) dw_mult_no_stride_no_tag.o -o dw_mult_no_stride_no_tag $(LDFLAGS) $(LIBS)
  33. clean:
  34. @rm -f *.o *.d *.gcno *.gcda
  35. @rm -f dw_mult dw_mult_no_stride dw_mult_no_stride_no_tag