Blame view

Makefile 332 Bytes
40055b7e   James Caveen   Added Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##########################
# Makefile to build MPI laplace and MPI heat2d
#
#Author : James Caveen
#
SHELL=/bin/bash
#
# Mpi compiler
#
CC = mpicc

.c.o:
	$(CC) $(CFLAGS) -c $<

EXEC=laplace heat2d

all : $(EXEC)

laplace : laplace.o
	$(CC) -o $@ laplace.o

heat2d : mpi_heat2d.o
	$(CC) -o $@ mpi_heat2d.o

clean:
	rm -f *.o $(EXEC)