Blame view
lab1/Makefile
459 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 23 24 25 26 27 28 29 30 31 32 33 34 35 |
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 $@ $^ pi_mpi: pi_mpi.o $(MPI) $(CFLAGS) -o $@ $^ %.o :%.c $(GCC) $(CFLAGS) -c -o $@ $< clean: $(RM) *.o purge: clean $(RM) $(EXE) |