1 PROGRAM = $(BINDIR)/$(BENCHMARK).$(CLASS).$(NPROCS)
2 CCOMPILE = $(MPICC) -c $(CMPI_INC) $(CFLAGS)
4 # Class "U" is used internally by the setparams program to mean
5 # "unknown". This means that if you don't specify CLASS=
6 # on the command line, you'll get an error. It would be nice
7 # to be able to avoid this, but we'd have to get information
8 # from the setparams back to the make program, which isn't easy.
14 # This makes sure the configuration utility setparams
16 # Note that this must be run every time, which is why the
17 # target does not exist and is not created.
18 # If you create a file called "config" you will break things.
20 @cd ../sys; ${MAKE} all
21 ../sys/setparams ${BENCHMARK} ${NPROCS} ${CLASS} ${SUBTYPE}
24 $${COMMON}/c_randdp.o: ${COMMON}/randdp.c
25 cd ${COMMON}; ${CCOMPILE} -o c_randdp.o randdp.c
27 ${COMMON}/c_print_results.o: ${COMMON}/c_print_results.c
28 cd ${COMMON}; ${CCOMPILE} c_print_results.c
30 ${COMMON}/c_timers.o: ${COMMON}/c_timers.c
31 cd ${COMMON}; ${CCOMPILE} c_timers.c
33 # Normally setparams updates npbparams.h only if the settings (CLASS/NPROCS)
34 # have changed. However, we also want to update if the compile options
35 # may have changed (set in ../config/make.def).
36 npbparams.h: ../config/make.def
37 @ echo make.def modified. Rebuilding npbparams.h just in case
39 ../sys/setparams ${BENCHMARK} ${NPROCS} ${CLASS} ${SUBTYPE}
41 # So that "make benchmark-name" works
43 ${BENCHMARKU}: default