Makefile (365B)
1 CC = gcc 2 CPP = g++ 3 OPT = -O3 4 VAR = -DARRAYSIZE=100000000 5 6 all: sort_c sort_cpp sort_parallel_cpp 7 8 sort_c: 9 ${CC} ${OPT} ${VAR} -std=c11 -o sort sort.c 10 ./sort 11 12 sort_cpp: 13 ${CPP} ${OPT} ${VAR} -std=c++20 -o sort sort.cpp 14 ./sort 15 16 sort_parallel_cpp: 17 ${CPP} ${OPT} ${VAR} -std=c++20 -o sort sort_parallel.cpp -ltbb 18 ./sort 19 20 .PHONY: sort_c sort_cpp sort_parallel_cpp