xref: /petsc/src/mat/tutorials/makefile (revision cd1bdac545d20179bf6a6b3f786454bb86c0c48d)
1cdb0f33dSPierre Jolivet-include ../../../petscdir.mk
2f97672e5SBarry Smith
3c4762a1bSJed Browninclude ${PETSC_DIR}/lib/petsc/conf/variables
4c4762a1bSJed Browninclude ${PETSC_DIR}/lib/petsc/conf/rules
5c4762a1bSJed Brown
6735d7f90SBarry Smith# set the conditional prerequisites after including the 'variables' file, so we
7735d7f90SBarry Smith# can reference make macros defined by it, but before including the 'test' file,
8735d7f90SBarry Smith# so that ex18 has correct full prerequisites (instead of the default ex18.o)
9da4996e5SSatish Balayex18objs :=
10735d7f90SBarry Smithifneq ($(CUDAC),)
11735d7f90SBarry Smith  ex18objs += ex18cu.o
12735d7f90SBarry Smithendif
13735d7f90SBarry Smithifneq ($(KOKKOS_LIB),)
14*896e5da2SSatish Balay  ex18objs += ex18k.o
15735d7f90SBarry Smithendif
16735d7f90SBarry Smithex18 : ${ex18objs}
17