FDD-book/examples/part-06/ch26-usb-serial/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

23 lines
684 B
Makefile

# Makefile for myfirst_usb - Chapter 26 (USB and Serial Drivers).
#
# Builds the chapter's reference USB driver module, myfirst_usb.ko,
# which demonstrates the USB transfer framework, the probe/attach
# lifecycle, and the labelled-goto cleanup chain applied to USB.
#
# The companion file myfirst_usb.h declares the softc and transfer
# indices; myfirst_usb.c implements the Newbus methods and the
# three-state callback state machine for bulk and interrupt transfers.
KMOD= myfirst_usb
SRCS= myfirst_usb.c
CFLAGS+= -I${.CURDIR}
# Needed for usb_if.h, usbdi.h, and related headers.
SRCS+= usb_if.h
SRCS+= device_if.h
SRCS+= bus_if.h
SYSDIR?= /usr/src/sys
.include <bsd.kmod.mk>