1
1

Minor touch-ups to the examples, courtesy of Paul Hargrove with a minor tweak

This commit was SVN r25981.
Этот коммит содержится в:
Ralph Castain 2012-02-21 09:51:16 +00:00
родитель 0ad3f14281
Коммит 24afd3ca55

Просмотреть файл

@ -25,8 +25,8 @@
CC = mpicc
CXX = mpic++
CCC = mpic++
F90 = mpif90
F77 = mpif77
FC = mpif90
JAVAC = mpijavac
# Using -g is not necessary, but it is helpful for example programs,
@ -38,7 +38,7 @@ CFLAGS = -g
CXXFLAGS = -g
CCFLAGS = -g
F77FLAGS = -g
FCFLAGS = -g
F90FLAGS = -g
# Example programs to build
@ -49,19 +49,19 @@ EXAMPLES = hello_c hello_cxx hello_f77 hello_f90 Hello.class \
# if Open MPI was build with the relevant language bindings.
all: hello_c ring_c connectivity_c
@ if test "`ompi_info --parsable | grep bindings:cxx:yes`" != ""; then \
@ if ompi_info --parsable | grep bindings:cxx:yes >/dev/null; then \
$(MAKE) hello_cxx ring_cxx; \
fi
@ if test "`ompi_info --parsable | grep bindings:f77:yes`" != ""; then \
@ if ompi_info --parsable | grep bindings:f77:yes >/dev/null; then \
$(MAKE) hello_f77 ring_f77; \
fi
@ if test "`ompi_info --parsable | grep bindings:f90:yes`" != ""; then \
@ if ompi_info --parsable | grep bindings:f90:yes >/dev/null; then \
$(MAKE) hello_f90 ring_f90; \
fi
@ if test "`ompi_info --parsable | grep bindings:java:yes`" != ""; then \
@ if ompi_info --parsable | grep bindings:java:yes >/dev/null; then \
$(MAKE) Hello.class; \
fi
@ if test "`ompi_info --parsable | grep bindings:java:yes`" != ""; then \
@ if ompi_info --parsable | grep bindings:java:yes >/dev/null; then \
$(MAKE) Ring.class; \
fi
@ -79,9 +79,9 @@ ring_f77: ring_f77.f
$(F77) $(F77FLAGS) $^ -o $@
hello_f90: hello_f90.f90
$(FC) $(FCFLAGS) $^ -o $@
$(F90) $(F90FLAGS) $^ -o $@
ring_f90: ring_f90.f90
$(FC) $(FCFLAGS) $^ -o $@
$(F90) $(F90FLAGS) $^ -o $@
Hello.class: Hello.java
$(JAVAC) Hello.java