16 lines
290 B
Makefile
16 lines
290 B
Makefile
obj-m += procfs1.o
|
|
obj-m += procfs2.o
|
|
obj-m += procfs3.o
|
|
obj-m += procfs4.o
|
|
obj-m += hello-sysfs.o
|
|
|
|
PWD := $(CURDIR)
|
|
|
|
all:
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
gcc procfs.c -o 占位
|
|
|
|
clean:
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
|
rm 占位
|