linux_module_learn/examples/misc-progs/Makefile

14 lines
297 B
Makefile
Raw Permalink Normal View History

2023-07-22 13:42:32 +08:00
FILES = nbtest load50 mapcmp polltest mapper setlevel setconsole inp outp \
datasize dataalign netifdebug
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
INCLUDEDIR = $(KERNELDIR)/include
CFLAGS = -O2 -fomit-frame-pointer -Wall -I$(INCLUDEDIR)
all: $(FILES)
clean:
rm -f $(FILES) *~ core