18 lines
511 B
Makefile
18 lines
511 B
Makefile
CFLAGS=-lm -g -Wall -O1
|
|
|
|
build/main: src/main.c src/repetition_tester.c build/multi_nop_loop.o build/write_loops.o src/rprof.h
|
|
mkdir -p build
|
|
gcc -o build/main src/main.c build/multi_nop_loop.o build/write_loops.o $(CFLAGS)
|
|
|
|
build/write_loops.o: src/write_loops.asm
|
|
nasm -g -f elf64 -o build/write_loops.o src/write_loops.asm
|
|
|
|
build/multi_nop_loop.o: src/multi_nop_loop.asm
|
|
nasm -g -f elf64 -o build/multi_nop_loop.o src/multi_nop_loop.asm
|
|
|
|
run: ./build/main
|
|
./build/main $(TEST_NAME)
|
|
|
|
clean:
|
|
rm -r build
|