FDD-book/examples/appendices/appendix-f-benchmarks/timecounter/Makefile
Edson Brandi 6e6dac94fe Add book companion files under examples/
Organize companion code and materials by book part:

  part-01/      Foundations
  part-02/      Kernel & driver fundamentals
  part-03/      Character & block devices
  part-04/      Networking & storage
  part-05/      Buses & advanced topics
  part-06/      Debugging & performance
  part-07/      Real-world drivers
  appendices/   Supplementary material
  README.md     Overview and build instructions
2026-04-25 16:51:00 +00:00

27 lines
494 B
Makefile

# Makefile for Appendix F timecounter benchmarks.
#
# Build with BSD make on FreeBSD 14.3-amd64:
# make
# Run (requires root for the rotation script):
# sh run_tc_bench.sh
# ./rdtsc_bench
# Clean up:
# make clean
CC?= cc
CFLAGS?= -O2 -Wall -Wextra -pedantic -std=c11
PROGS= tc_bench rdtsc_bench
all: ${PROGS}
tc_bench: tc_bench.c
${CC} ${CFLAGS} -o $@ tc_bench.c
rdtsc_bench: rdtsc_bench.c
${CC} ${CFLAGS} -o $@ rdtsc_bench.c
clean:
rm -f ${PROGS}
.PHONY: all clean