You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
551 B
Makefile

MPICC = mpicc #The wrapper for the compiler
CC = gcc
CFLAGS += -g #Useful for debug symbols
LDLIBS += -lm
all: sequentialderiv parallelderiv
sequentialderiv: sequentialderiv.c
$(CC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@
parallelderiv: parallelderiv.c
$(MPICC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@
midpointintegral: midpointintegral.c
$(MPICC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@
montecarlostyle: montecarlostyle.c
$(MPICC) $(CFLAGS) $(LDFLAGS) $? $(LDLIBS) -o $@
clean:
rm -f easysendrecv nonblockingsendrecv sequentialderiv