Initail commit

This commit is contained in:
tuna2134
2026-06-29 22:44:27 +09:00
commit 428ce85179
8 changed files with 1391 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
KDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
obj-m += etherip6.o
.PHONY: all module tools clean
all: module tools
module:
$(MAKE) -C $(KDIR) M=$(PWD) modules
tools: etherip6ctl
etherip6ctl: etherip6ctl.c etherip6_uapi.h
$(CC) $(CFLAGS) -Wall -Wextra -O2 -o $@ etherip6ctl.c
clean:
@if [ -d "$(KDIR)" ]; then \
$(MAKE) -C "$(KDIR)" M="$(PWD)" clean; \
else \
$(RM) -r .tmp_versions; \
$(RM) *.o .*.o *.ko *.mod *.mod.c Module.symvers modules.order .*.cmd; \
fi
$(RM) etherip6ctl