1
0
harvensine-compute/Makefile

23 lines
482 B
Makefile

CFLAGS=-lm -g -Wall -O2
.PHONY := gen_data main
guess_cpu_speed: build/guess_cpu_speed
gen_data: build/gen_data
main: build/main
build/gen_data: src/gen_data.c
mkdir -p build
gcc -o build/gen_data src/gen_data.c $(CFLAGS)
build/main: src/main.c src/json_parser.c
mkdir -p build
gcc -o build/main src/main.c $(CFLAGS)
build/guess_cpu_speed: src/guess_cpu_speed.c src/timer.c
mkdir -p build
gcc -o build/guess_cpu_speed src/guess_cpu_speed.c $(CFLAGS)
clean:
rm -r build