Makefile.svn-base 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. SHELL=/bin/sh
  2. BENCHMARK=lu
  3. BENCHMARKU=LU
  4. PROGRAM = $(BENCHMARK).$(CLASS).$(NPROCS)
  5. default:: ${PROGRAM}
  6. # This makes sure the configuration utility setparams
  7. # is up to date.
  8. # Note that this must be run every time, which is why the
  9. # target does not exist and is not created.
  10. # If you create a file called "config" you will break things.
  11. config:
  12. cd ../sys; make all
  13. ../sys/setparams ${BENCHMARK} ${NPROCS} ${CLASS} ${SUBTYPE}
  14. # Normally setparams updates npbparams.h only if the settings (CLASS/NPROCS)
  15. # have changed. However, we also want to update if the compile options
  16. # may have changed (set in ../config/make.def).
  17. npbparams.h: ../config/make.def
  18. @ echo make.def modified. Rebuilding npbparams.h just in case
  19. rm -f npbparams.h
  20. ../sys/setparams ${BENCHMARK} ${NPROCS} ${CLASS}
  21. # So that "make benchmark-name" works
  22. ${BENCHMARK}: default
  23. ${BENCHMARKU}: default
  24. lu.o: lu.c applu.h npbparams.h applu_protos.h
  25. blts.o: blts.c applu_share.h applu_protos.h npbparams.h
  26. buts.o: buts.c applu_share.h applu_protos.h npbparams.h
  27. erhs.o: erhs.c npbparams.h applu_share.h applu_protos.h
  28. error.o: error.c npbparams.h applu_share.h applu_protos.h
  29. exact.o: exact.c npbparams.h applu_share.h applu_protos.h
  30. exchange_1.o: exchange_1.c npbparams.h applu_share.h applu_protos.h
  31. exchange_3.o: exchange_3.c npbparams.h applu_share.h applu_protos.h
  32. exchange_4.o: exchange_4.c npbparams.h applu_share.h applu_protos.h
  33. exchange_5.o: exchange_5.c npbparams.h applu_share.h applu_protos.h
  34. exchange_6.o: exchange_6.c npbparams.h applu_share.h applu_protos.h
  35. init_comm.o: init_comm.c npbparams.h applu_share.h applu_protos.h
  36. jacld.o: jacld.c npbparams.h applu_share.h applu_protos.h
  37. jacu.o: jacu.c npbparams.h applu_share.h applu_protos.h
  38. l2norm.o: l2norm.c applu_share.h applu_protos.h
  39. neighbors.o: neighbors.c npbparams.h applu_share.h applu_protos.h
  40. nodedim.o: nodedim.c applu_share.h applu_protos.h
  41. pintgr.o: pintgr.c npbparams.h applu_share.h applu_protos.h
  42. proc_grid.o: proc_grid.c npbparams.h applu_share.h applu_protos.h
  43. read_input.o: read_input.c npbparams.h applu_share.h applu_protos.h
  44. rhs.o: rhs.c npbparams.h applu_share.h applu_protos.h
  45. setbv.o: setbv.c npbparams.h applu_share.h applu_protos.h
  46. setiv.o: setiv.c npbparams.h applu_share.h applu_protos.h
  47. setcoeff.o: setcoeff.c npbparams.h applu_share.h applu_protos.h
  48. ssor.o: ssor.c npbparams.h applu_share.h applu_protos.h
  49. subdomain.o: subdomain.c npbparams.h applu_share.h applu_protos.h
  50. verify.o: verify.c npbparams.h applu_share.h applu_protos.h
  51. OBJS = lu.o init_comm.o read_input.o proc_grid.o neighbors.o \
  52. nodedim.o subdomain.o setcoeff.o setbv.o exact.o setiv.o \
  53. erhs.o ssor.o exchange_1.o exchange_3.o \
  54. exchange_4.o exchange_5.o exchange_6.o \
  55. pintgr.o l2norm.o error.o \
  56. rhs.o jacld.o blts.o jacu.o buts.o \
  57. verify.o print_results.o timers.o $(ARCHIVE)
  58. ${PROGRAM}: $(OBJS)
  59. ${CCOMPILE} ${CFLAGS} -o ${PROGRAM} ${OBJS}
  60. # use line below for gcc, which does not link libm by default
  61. # ${CCOMPILE} ${CFLAGS} -o ${PROGRAM} ${OBJS} -lm
  62. .c.o:
  63. ${CCOMPILE} -c $(CFLAGS) -restrict $<
  64. clean:
  65. - /bin/rm -f npbparams.h
  66. - /bin/rm -f *.o *~