Begin linking to MPI.
This commit is contained in:
parent
63e2eda663
commit
fadcafaeaf
6
Makefile
6
Makefile
@ -14,15 +14,15 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
CC=gcc
|
CC=mpicc
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
INCFLAGS=
|
INCFLAGS=
|
||||||
LDFLAGS=-lgmp
|
LDFLAGS=-lgmp
|
||||||
DEFS=-DVERSION=\"2.0\" -DAPP_NAME=\"Indivisible\"
|
DEFS=-DVERSION=\"2.0\" -DAPP_NAME=\"Indivisible\"
|
||||||
CFLAGS=$(INCFLAGS) $(DEFS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
|
CFLAGS=$(INCFLAGS) $(DEFS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
|
||||||
HDRS=src/globals.h
|
HDRS=src/globals.h src/llist.h
|
||||||
OBJS=src/main.o
|
OBJS=src/main.o src/llist.o
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
CFLAGS+=-g -O0 -DDEBUG
|
CFLAGS+=-g -O0 -DDEBUG
|
||||||
|
3
README
3
README
@ -10,9 +10,8 @@ library as well as OpenMPI for parallelization.
|
|||||||
The dependencies for compiling are minimal, and should be available
|
The dependencies for compiling are minimal, and should be available
|
||||||
on most UNIX-like systems:
|
on most UNIX-like systems:
|
||||||
- GNU Make
|
- GNU Make
|
||||||
- C99 Compiler (GCC is recommended)
|
|
||||||
- GNU Multi-Precision Arithmetics Library (GMP)
|
- GNU Multi-Precision Arithmetics Library (GMP)
|
||||||
- OpenMPI
|
- OpenMPI C wrapper compiler (mpicc)
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
To compile you simply need to run the `make` command, which will
|
To compile you simply need to run the `make` command, which will
|
||||||
|
Loading…
Reference in New Issue
Block a user