TP-calcul-parallele/TP1/05_CG/Makefile
2023-06-23 19:34:09 +02:00

19 lines
250 B
Makefile

CC=gcc
MPICC=smpicc
CFLAGS=-g -O4
all: CG_par CG_sq
clean:
rm -rf *.o CG_par CG_sq
%.o: %.c
echo $@
$(MPICC) -c -Wall -o $@ $<
CG_par: util.o CG_par.o main_par.o
$(MPICC) -o $@ $^ -lm
CG_sq: util.o CG_sq.o main_sq.o
$(MPICC) -o $@ $^ -lm