Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove warning about uninitialized variable
[simgrid.git] / examples / smpi / NAS / SP / Makefile
1 SHELL=/bin/sh
2 BENCHMARK=sp
3 BENCHMARKU=SP
4
5 include ../config/make.def
6
7
8 OBJS = sp.o make_set.o initialize.o exact_solution.o exact_rhs.o \
9        set_constants.o adi.o define.o copy_faces.o rhs.o      \
10        lhsx.o lhsy.o lhsz.o x_solve.o ninvr.o y_solve.o pinvr.o    \
11        z_solve.o tzetar.o add.o txinvr.o error.o verify.o setup_mpi.o \
12        ${COMMON}/print_results.o ${COMMON}/timers.o
13
14 include ../sys/make.common
15
16 # npbparams.h is included by header.h
17 # The following rule should do the trick but many make programs (not gmake)
18 # will do the wrong thing and rebuild the world every time (because the
19 # mod time on header.h is not changed. One solution would be to 
20 # touch header.h but this might cause confusion if someone has
21 # accidentally deleted it. Instead, make the dependency on npbparams.h
22 # explicit in all the lines below (even though dependence is indirect). 
23
24 # header.h: npbparams.h
25
26 ${PROGRAM}: config ${OBJS}
27         ${FLINK} ${FLINKFLAGS} -o ${PROGRAM} ${OBJS} ${FMPI_LIB}
28
29 .f.o:
30         ${FCOMPILE} $<
31
32 sp.o:             sp.f  header.h npbparams.h  mpinpb.h
33 make_set.o:       make_set.f  header.h npbparams.h  mpinpb.h
34 initialize.o:     initialize.f  header.h npbparams.h
35 exact_solution.o: exact_solution.f  header.h npbparams.h
36 exact_rhs.o:      exact_rhs.f  header.h npbparams.h
37 set_constants.o:  set_constants.f  header.h npbparams.h
38 adi.o:            adi.f  header.h npbparams.h
39 define.o:         define.f  header.h npbparams.h
40 copy_faces.o:     copy_faces.f  header.h npbparams.h  mpinpb.h
41 rhs.o:            rhs.f  header.h npbparams.h
42 lhsx.o:           lhsx.f  header.h npbparams.h
43 lhsy.o:           lhsy.f  header.h npbparams.h
44 lhsz.o:           lhsz.f  header.h npbparams.h
45 x_solve.o:        x_solve.f  header.h npbparams.h  mpinpb.h
46 ninvr.o:          ninvr.f  header.h npbparams.h
47 y_solve.o:        y_solve.f  header.h npbparams.h  mpinpb.h
48 pinvr.o:          pinvr.f  header.h npbparams.h
49 z_solve.o:        z_solve.f  header.h npbparams.h  mpinpb.h
50 tzetar.o:         tzetar.f  header.h npbparams.h
51 add.o:            add.f  header.h npbparams.h
52 txinvr.o:         txinvr.f  header.h npbparams.h
53 error.o:          error.f  header.h npbparams.h  mpinpb.h
54 verify.o:         verify.f  header.h npbparams.h  mpinpb.h
55 setup_mpi.o:      setup_mpi.f mpinpb.h npbparams.h 
56
57
58 clean:
59         - rm -f *.o *~ mputil*
60         - rm -f npbparams.h core