LIB := -lm # uncomment these lines for the Gnu gcc compiler # CC := gcc # FLAGS := -std=c99 -O3 -march=native -fopenmp # uncomment these lines for the Intel icx compiler # -- the default for -qopt-report is 2, the range is 1-3 CC := icx FLAGS := -std=c11 -O3 -march=emeraldrapids -qopenmp -qopt-report=3 -qopt-report-file=stdout all: fd fd2 fd3 fd: fd.c Makefile $(CC) $(FLAGS) fd.c -o fd $(LIB) fd2: fd2.c Makefile $(CC) $(FLAGS) fd2.c -o fd2 $(LIB) fd3: fd3.c Makefile $(CC) $(FLAGS) fd3.c -o fd3 $(LIB) clean: rm -f fd fd3