1
0
repetition-testing/Makefile
2024-02-15 18:23:30 +02:00

15 lines
332 B
Makefile

CFLAGS=-lm -g -Wall -O0
build/main: src/main.c src/repetition_tester.c build/nop_loop.o src/rprof.h
mkdir -p build
gcc -o build/main src/main.c build/nop_loop.o $(CFLAGS)
build/nop_loop.o: src/nop_loop.asm
nasm -g -f elf64 -o build/nop_loop.o src/nop_loop.asm
run: ./build/main
./build/main $(TEST_NAME)
clean:
rm -r build