Begin linking to MPI.

This commit is contained in:
Nicolás Ortega Froysa 2019-09-24 08:19:47 +02:00
parent 63e2eda663
commit fadcafaeaf
2 changed files with 4 additions and 5 deletions

View File

@ -14,15 +14,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CC=gcc
CC=mpicc
DEBUG=0
PREFIX=/usr/local
INCFLAGS=
LDFLAGS=-lgmp
DEFS=-DVERSION=\"2.0\" -DAPP_NAME=\"Indivisible\"
CFLAGS=$(INCFLAGS) $(DEFS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
HDRS=src/globals.h
OBJS=src/main.o
HDRS=src/globals.h src/llist.h
OBJS=src/main.o src/llist.o
ifeq ($(DEBUG),1)
CFLAGS+=-g -O0 -DDEBUG

3
README
View File

@ -10,9 +10,8 @@ library as well as OpenMPI for parallelization.
The dependencies for compiling are minimal, and should be available
on most UNIX-like systems:
- GNU Make
- C99 Compiler (GCC is recommended)
- GNU Multi-Precision Arithmetics Library (GMP)
- OpenMPI
- OpenMPI C wrapper compiler (mpicc)
## Compiling
To compile you simply need to run the `make` command, which will