1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #
- # StarPU
- # Copyright (C) INRIA 2008-2009 (see AUTHORS file)
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU Lesser General Public License as published by
- # the Free Software Foundation; either version 2.1 of the License, or (at
- # your option) any later version.
- #
- # This program is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- #
- # See the GNU Lesser General Public License in COPYING.LGPL for more details.
- #
- export PKG_CONFIG_PATH=@STARPUDIR@
- LIBS+=$$(pkg-config --libs libstarpu)
- CFLAGS+=$$(pkg-config --cflags libstarpu)
- BLASOBJ=../common/blas.o ../common/blas_model.o
- all: dw_mult dw_mult_no_stride dw_mult_no_stride_no_tag
- dw_mult.o: dw_mult.c dw_mult.h
- $(CC) $(CFLAGS) dw_mult.c -c -o dw_mult.o
- dw_mult_no_stride.o: dw_mult_no_stride.c dw_mult.h
- $(CC) $(CFLAGS) dw_mult_no_stride.c -c -o dw_mult_no_stride.o
- dw_mult_no_stride_no_tag.o: dw_mult_no_stride_no_tag.c dw_mult.h
- $(CC) $(CFLAGS) dw_mult_no_stride_no_tag.c -c -o dw_mult_no_stride_no_tag.o
- dw_mult: $(BLASOBJ) dw_mult.o
- $(CC) $(BLASOBJ) dw_mult.o -o dw_mult $(LDFLAGS) $(LIBS)
- dw_mult_no_stride: $(BLASOBJ) dw_mult_no_stride.o
- $(CC) $(BLASOBJ) dw_mult_no_stride.o -o dw_mult_no_stride $(LDFLAGS) $(LIBS)
- dw_mult_no_stride_no_tag: $(BLASOBJ) dw_mult_no_stride_no_tag.o
- $(CC) $(BLASOBJ) dw_mult_no_stride_no_tag.o -o dw_mult_no_stride_no_tag $(LDFLAGS) $(LIBS)
- clean:
- @rm -f *.o *.d *.gcno *.gcda
- @rm -f dw_mult dw_mult_no_stride dw_mult_no_stride_no_tag
|