nixpkgs/pkgs/os-specific/linux/trelay/Makefile
April John 6cee3b5893 linuxPackages.trelay: init at 22.03.5
Co-authored-by: Yaya <github@uwu.is>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Yureka <yuka@yuka.dev>
2023-07-16 21:13:31 +02:00

15 lines
284 B
Makefile

KERNELRELEASE ?= $(shell uname -r)
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
PWD := $(shell pwd)
obj-m := trelay.o
all:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
install:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean