xref: /petsc/src/mat/tutorials/makefile (revision 7bb670c6b095b2af062682d621b50e4a531d2a07)
1-include ../../../petscdir.mk
2
3LOCDIR          = src/mat/tutorials/
4EXAMPLESC       = ex1.c ex2.c ex4.c ex8.c ex9.c ex10.c ex11.c ex12.c ex15.c ex16.c ex17.c ex18.c
5EXAMPLESF       = ex4f.F90 ex6f.F90 ex15f.F90 ex17f.F90
6EXAMPLESCU      = ex5cu.cu
7MANSEC          = Mat
8
9include ${PETSC_DIR}/lib/petsc/conf/variables
10include ${PETSC_DIR}/lib/petsc/conf/rules
11
12# set the conditional prerequisites after including the 'variables' file, so we
13# can reference make macros defined by it, but before including the 'test' file,
14# so that ex18 has correct full prerequisites (instead of the default ex18.o)
15ex18objs := ex18.o
16ifneq ($(CUDAC),)
17  ex18objs += ex18cu.o
18endif
19ifneq ($(KOKKOS_LIB),)
20  ex18objs += ex18kok.o
21endif
22ex18 : ${ex18objs}
23
24include ${PETSC_DIR}/lib/petsc/conf/test
25