Commit 8988839c authored by jourdain's avatar jourdain
Browse files

Add CFLAGS to Makefile

parent 0c0bfdae
CC=icc
MPICC=mpicc
LIB_OMP=-qopenmp
# Specify the compiler flags
# Optimized
CFLAGS = -O3 -xhost
# Debugging : -g Save symbols for debuggers, -traceback Extra information
# CFLAGS = -O0 -g -traceback
# gprof profiling
# CFLAGS = -pg -O
SRC_DIR=src
all: hello_mpi hello_omp hello_hybrid
hello_mpi: $(SRC_DIR)/hello_mpi.c
$(MPICC) -o bin/$@ $^
$(MPICC) $(CFLAGS) -o bin/$@ $^
hello_omp: $(SRC_DIR)/hello_omp.c
$(CC) -o bin/$@ $^ $(LIB_OMP)
$(CC) $(CFLAGS) -o bin/$@ $^ $(LIB_OMP)
hello_hybrid: $(SRC_DIR)/hello_hybrid.c
$(MPICC) -o bin/$@ $^ $(LIB_OMP)
$(MPICC) $(CFLAGS) -o bin/$@ $^ $(LIB_OMP)
clean:
rm bin/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment