mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
Rename test to user
This commit is contained in:
15
kernel_module/user/Makefile
Normal file
15
kernel_module/user/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
.PHONY: clean
|
||||
|
||||
CC ?= gcc
|
||||
IN_EXT ?= .c
|
||||
OUT_EXT ?= .out
|
||||
|
||||
OUTS := $(addsuffix $(OUT_EXT), $(basename $(wildcard *$(IN_EXT))))
|
||||
|
||||
all: $(OUTS)
|
||||
|
||||
%$(OUT_EXT): %$(IN_EXT)
|
||||
$(CC) -o '$@' '$<'
|
||||
|
||||
clean:
|
||||
rm -f *'$(OUT_EXT)'
|
||||
Reference in New Issue
Block a user