Blame view
lab1/Makefile
457 Bytes
6a98a5afa lab1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
GCC = gcc MPI = mpicc CFLAGS = -O3 -fopenmp OMP_FLAG = -fopenmp RM = rm -rf EXE = pi_ser pi_omp pi_task pi_mpi all : $(EXE) #.PHONY: all clean purge pi_ser: pi_ser.o $(GCC) $(CFLAGS) -o $@ $^ pi_task: pi_task.o $(GCC) $(CFLAGS) -o $@ $^ pi_omp: pi_omp.o $(GCC) $(CFLAGS) $(OMP_FLAG) -o $@ $^ |
f0c55387c fix mpi makefile |
23 24 |
pi_mpi: $(MPI) $(CFLAGS) -o $@ pi_mpi.c |
6a98a5afa lab1 |
25 26 27 28 29 30 31 32 33 34 |
%.o :%.c $(GCC) $(CFLAGS) -c -o $@ $< clean: $(RM) *.o purge: clean $(RM) $(EXE) |