Commit 40055b7eee314286df19292278def2022b88b980

Authored by James Caveen
1 parent 5a294ec2
Exists in master

Added Makefile

Showing 1 changed file with 26 additions and 0 deletions   Show diff stats
Makefile 0 → 100644
@@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
  1 +##########################
  2 +# Makefile to build MPI laplace and MPI heat2d
  3 +#
  4 +#Author : James Caveen
  5 +#
  6 +SHELL=/bin/bash
  7 +#
  8 +# Mpi compiler
  9 +#
  10 +CC = mpicc
  11 +
  12 +.c.o:
  13 + $(CC) $(CFLAGS) -c $<
  14 +
  15 +EXEC=laplace heat2d
  16 +
  17 +all : $(EXEC)
  18 +
  19 +laplace : laplace.o
  20 + $(CC) -o $@ laplace.o
  21 +
  22 +heat2d : mpi_heat2d.o
  23 + $(CC) -o $@ mpi_heat2d.o
  24 +
  25 +clean:
  26 + rm -f *.o $(EXEC)
0 \ No newline at end of file 27 \ No newline at end of file