mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
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
28 lines
758 B
Makefile
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
|