27 lines
600 B
Makefile
27 lines
600 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 src/rprof.h
|
|
mkdir -p build
|
|
gcc -o build/main src/main.c $(CFLAGS)
|
|
|
|
build/test: src/tests.c src/repetition_tester.c
|
|
mkdir -p build
|
|
gcc -o build/test src/tests.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
|