1cdb0f33dSPierre Jolivet-include ../../../petscdir.mk 2*f97672e5SBarry Smith 3c4762a1bSJed BrownLOCDIR = src/mat/tutorials/ 4735d7f90SBarry SmithEXAMPLESC = ex1.c ex2.c ex4.c ex8.c ex9.c ex10.c ex11.c ex12.c ex15.c ex16.c ex17.c ex18.c 5c4762a1bSJed BrownEXAMPLESF = ex4f.F90 ex6f.F90 ex15f.F90 ex17f.F90 63fa6b06aSMark AdamsEXAMPLESCU = ex5cu.cu 7c4762a1bSJed BrownMANSEC = Mat 8c4762a1bSJed Brown 9c4762a1bSJed Browninclude ${PETSC_DIR}/lib/petsc/conf/variables 10c4762a1bSJed Browninclude ${PETSC_DIR}/lib/petsc/conf/rules 11c4762a1bSJed Brown 12735d7f90SBarry Smith# set the conditional prerequisites after including the 'variables' file, so we 13735d7f90SBarry Smith# can reference make macros defined by it, but before including the 'test' file, 14735d7f90SBarry Smith# so that ex18 has correct full prerequisites (instead of the default ex18.o) 15735d7f90SBarry Smithex18objs := ex18.o 16735d7f90SBarry Smithifneq ($(CUDAC),) 17735d7f90SBarry Smith ex18objs += ex18cu.o 18735d7f90SBarry Smithendif 19735d7f90SBarry Smithifneq ($(KOKKOS_LIB),) 20735d7f90SBarry Smith ex18objs += ex18kok.o 21735d7f90SBarry Smithendif 22735d7f90SBarry Smithex18 : ${ex18objs} 23735d7f90SBarry Smith 24735d7f90SBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/test 25