TP-calcul-parallele/TP1/05_CG/Makefile

19 lines
250 B
Makefile
Raw Normal View History

2023-06-23 17:34:09 +00:00
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