1
0
harvensine-compute/Makefile

32 lines
829 B
Makefile

CFLAGS=-lm -g -Wall -O2 -mavx2 -mfma
.PHONY := gen_data main
guess_cpu_speed: build/guess_cpu_speed
gen_data: build/gen_data
main: build/main
build:
mkdir -p build
build/gen_data: src/gen_data.c build
gcc -o build/gen_data src/gen_data.c $(CFLAGS)
build/math_func_checker: src/math_func_checker.c build
gcc -o build/math_func_checker src/math_func_checker.c $(CFLAGS)
build/main: src/main.c src/json_parser.c src/rprof.h build
gcc -o build/main src/main.c $(CFLAGS)
build/test: src/tests.c src/repetition_tester.c build
gcc -o build/test src/tests.c $(CFLAGS)
build/guess_cpu_speed: src/guess_cpu_speed.c build
gcc -o build/guess_cpu_speed src/guess_cpu_speed.c $(CFLAGS)
build/page_fault_prober: src/page_fault_prober.c build
gcc -o build/page_fault_prober src/page_fault_prober.c $(CFLAGS)
clean:
rm -r build