pgregory.net/rand@v1.0.3-0.20230808192358-a0b8ce02f4da/misc/cppbench/Makefile (about) 1 all: bench-c bench-g 2 3 clean: 4 rm bench-c bench-g *.o 5 6 bench-c: bench-c.o nanobench-c.o 7 clang++ -flto -O3 -o bench-c bench-c.o nanobench-c.o 8 9 bench-g: bench-g.o nanobench-g.o 10 g++ -flto -O3 -fno-unroll-loops -fno-move-loop-invariants -o bench-g bench-g.o nanobench-g.o 11 12 bench-c.o: vendor/nanobench.h bench.cpp 13 clang++ -std=c++17 -Wall -flto -O3 -o bench-c.o -c bench.cpp 14 15 bench-g.o: vendor/nanobench.h bench.cpp 16 g++ -std=c++17 -Wall -flto -O3 -fno-unroll-loops -fno-move-loop-invariants -o bench-g.o -c bench.cpp 17 18 nanobench-c.o: vendor/nanobench.h nanobench.cpp 19 clang++ -std=c++17 -Wall -flto -O3 -o nanobench-c.o -c nanobench.cpp 20 21 nanobench-g.o: vendor/nanobench.h nanobench.cpp 22 g++ -std=c++17 -Wall -flto -O3 -fno-unroll-loops -fno-move-loop-invariants -o nanobench-g.o -c nanobench.cpp