FDD-book/examples/part-02/ch08-working-with-device-files/userland/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

28 lines
758 B
Makefile

# Makefile for Chapter 8 userland probes.
#
# Plain userland C programs, not kernel modules. Written to be
# portable between FreeBSD's bmake and GNU make.
CFLAGS?= -Wall -Werror
all: probe_myfirst hold_myfirst stat_myfirst parallel_probe stress_probe
probe_myfirst: probe_myfirst.c
$(CC) $(CFLAGS) -o probe_myfirst probe_myfirst.c
hold_myfirst: hold_myfirst.c
$(CC) $(CFLAGS) -o hold_myfirst hold_myfirst.c
stat_myfirst: stat_myfirst.c
$(CC) $(CFLAGS) -o stat_myfirst stat_myfirst.c
parallel_probe: parallel_probe.c
$(CC) $(CFLAGS) -o parallel_probe parallel_probe.c
stress_probe: stress_probe.c
$(CC) $(CFLAGS) -o stress_probe stress_probe.c
clean:
rm -f probe_myfirst hold_myfirst stat_myfirst parallel_probe stress_probe
.PHONY: all clean