blob: 54d4096010e76e63cc4e2929e0dc927607a9e9ca [file] [log] [blame]
SHELL=/bin/sh
BENCHMARK=ua
BENCHMARKU=UA
include ../config/make.def
OBJS = ua.o convect.o diffuse.o adapt.o move.o mason.o \
precond.o utils.o transfer.o verify.o setup.o\
${COMMON}/print_results.o ${COMMON}/timers.o ${COMMON}/wtime.o
include ../sys/make.common
# npbparams.h is included by header.h
# The following rule should do the trick but many make programs (not gmake)
# will do the wrong thing and rebuild the world every time (because the
# mod time on header.h is not changed. One solution would be to
# touch header.h but this might cause confusion if someone has
# accidentally deleted it. Instead, make the dependency on npbparams.h
# explicit in all the lines below (even though dependence is indirect).
# header.h: npbparams.h
${PROGRAM}: config ${OBJS}
${FLINK} ${FLINKFLAGS} -o ${PROGRAM} ${OBJS} ${F_LIB}
.f.o:
${FCOMPILE} $<
ua.o: ua.f header.h npbparams.h
setup.o: setup.f header.h npbparams.h
convect.o: convect.f header.h npbparams.h
adapt.o: adapt.f header.h npbparams.h
move.o: move.f header.h npbparams.h
diffuse.o: diffuse.f header.h npbparams.h
mason.o: mason.f header.h npbparams.h
precond.o: precond.f header.h npbparams.h
transfer.o: transfer.f header.h npbparams.h
utils.o: utils.f header.h npbparams.h
verify.o: verify.f header.h npbparams.h
clean:
- rm -f *.o *~ mputil*
- rm -f npbparams.h core