From: W. Trevor King Date: Sat, 21 Jan 2012 17:41:22 +0000 (-0500) Subject: No need to use mpicc to compile the plot_image examples. Use gcc instead. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e67c2705fb88ccbdd11a15cfb5d2c3d8f44fa87;p=assignment-template.git No need to use mpicc to compile the plot_image examples. Use gcc instead. This requires linking libm explicitly to define `sin` and `cos`. --- diff --git a/src/plot_image/Makefile b/src/plot_image/Makefile index d0e5377..bd5cea9 100644 --- a/src/plot_image/Makefile +++ b/src/plot_image/Makefile @@ -1,7 +1,7 @@ -CC = /usr/bin/mpicc +CC = /usr/bin/gcc CFLAGS = LD = $(CC) -LDFLAGS = +LDFLAGS = -lm RM = /bin/rm EXAMPLES = rectangle sharp sinusoid EXECS = $(EXAMPLES:%=gen_data_%)