xref: /petsc/src/mat/tutorials/makefile (revision da4996e5b0f5ea5bcee36c2408081f808bf49bc0)
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)
9*da4996e5SSatish Balayex18objs :=
10735d7f90SBarry Smithifneq ($(CUDAC),)
11735d7f90SBarry Smith  ex18objs += ex18cu.o
12735d7f90SBarry Smithendif
13735d7f90SBarry Smithifneq ($(KOKKOS_LIB),)
14735d7f90SBarry Smith  ex18objs += ex18kok.o
15735d7f90SBarry Smithendif
16735d7f90SBarry Smithex18 : ${ex18objs}
17735d7f90SBarry Smith
18