FDD-book/examples/part-07/ch36-reverse-engineering/lab04-mock-device/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

18 lines
315 B
Makefile

KMOD= mockdev
SRCS= mockdev.c
SYSDIR?= /usr/src/sys
CFLAGS+= -I${.CURDIR}
# User-space test program is built with `make test`.
test: mockdev_test
mockdev_test: mockdev_test.c mockdev.h
cc -Wall -Wextra -O2 -o mockdev_test mockdev_test.c
clean: cleantest
cleantest:
rm -f mockdev_test
.include <bsd.kmod.mk>