File: makefile

package info (click to toggle)
petsc 3.1.dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 131,360 kB
  • ctags: 491,710
  • sloc: ansic: 288,064; cpp: 66,909; python: 28,799; fortran: 19,153; makefile: 13,945; sh: 3,502; f90: 1,655; xml: 620; csh: 230; java: 13
file content (56 lines) | stat: -rw-r--r-- 1,602 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

CFLAGS           =
FFLAGS		 = 
CPPFLAGS         =
FPPFLAGS         =
LOCDIR		 = tutorials/python/
MANSEC           = 
EXAMPLESC	 = ex1.c
EXAMPLESF	 = 
EXAMPLESCH	 = 
EXAMPLESFH       = 
EXAMPLESMATLAB   = 
DIRS		 = 
CLEANFILES       = 

include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

#--------------------------------------------------------------------------

ex1: ex1.o  chkopts
	-${CLINKER} -o ex1 ex1.o  ${PETSC_KSP_LIB}
	${RM} ex1.o

ex1f: ex1f.o  chkopts
	-${FLINKER} -o ex1f ex1f.o  ${PETSC_KSP_LIB}
	${RM} ex1f.o

#--------------------------------------------------------------------------

PYTHON = python

runex1:
	-@${MPIEXEC} -n 1 ./ex1 -ksp_monitor_short -ksp_view > ex1_1.tmp 2>&1;   \
	   if (${DIFF} output/ex1_1.out ex1_1.tmp) then true; \
	   else echo "Possible problem with ex1_1, diffs above"; fi; \
	   ${RM} -f ex1_1.tmp example1.py[co]

runex1f:
	-@${MPIEXEC} -n 1 ./ex1f -ksp_monitor_short -ksp_view > ex1f_1.tmp 2>&1;   \
	   if (${DIFF} output/ex1f_1.out ex1f_1.tmp) then true; \
	   else echo "Possible problem with ex1f_1, diffs above"; fi; \
	   ${RM} -f ex1f_1.tmp

runex1py:
	-@${MPIEXEC} -n 1 python ./ex1.py -ksp_monitor_short -ksp_view > ex1py_1.tmp 2>&1;   \
	   if (${DIFF} output/ex1py_1.out ex1py_1.tmp) then true; \
	   else echo "Possible problem with ex1py_1, diffs above"; fi; \
	   ${RM} -f ex1py_1.tmp example1.py[co]

TESTEXAMPLES_C       = ex1.PETSc runex1 runex1py ex1.rm
TESTEXAMPLES_FORTRAN = ex1f.PETSc runex1f ex1f.rm

#--------------------------------------------------------------------------

include ${PETSC_DIR}/conf/test