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.

19 lines
483 B
Makefile

MPICC = mpicc #The wrapper for the compiler
CC = gcc
CFLAGS += -g #Useful for debug symbols
LDLIBS += -lm
all: parallelderiv midpointintegral montecarlostyle
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 parallelderiv midpointintegral montecarlostyle