Skip to content
Snippets Groups Projects
Makefile 311 B
Newer Older
hautreux's avatar
hautreux committed
CC=icc
MPICC=mpicc
LIB_OMP=-qopenmp

SRC_DIR=src

all: hello_mpi hello_omp hello_hybrid

hello_mpi: $(SRC_DIR)/hello_mpi.c 
	$(MPICC) -o bin/$@ $^ 

hello_omp: $(SRC_DIR)/hello_omp.c 
	$(CC) -o bin/$@ $^ $(LIB_OMP) 

hello_hybrid: $(SRC_DIR)/hello_hybrid.c 
	$(MPICC) -o bin/$@ $^ $(LIB_OMP) 

clean:
	rm bin/*