CFLAGS=-fopenmp

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
	PROC_BIND=proc_bind_linux
	CC=gcc
endif
ifeq ($(UNAME_S),Darwin)
	PROC_BIND=proc_bind_macos
	CC=gcc-13
endif

all: cachelinesize findmax_omp_parallel findmax_omp_parallelfor findmax_omp_parallelfor_threadprivate findmax_omp_reduction findmax_seq $(PROC_BIND) \
	quiz1 quiz1_solution quiz2 quiz2_solution quiz3 quiz3_solution quiz3_solution_v2 quiz4 quiz4_solution threadmanagement  \
	reduction_for firstprivate_array


clean:
	rm -f cachelinesize findmax_omp_parallel findmax_omp_parallelfor findmax_omp_parallelfor_threadprivate findmax_omp_reduction findmax_seq $(PROC_BIND) \
	quiz1 quiz1_solution quiz2 quiz2_solution quiz3 quiz3_solution quiz3_solution_v2 quiz4 quiz4_solution threadmanagement \
	reduction_for firstprivate_array


