You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rtpengine/kernel-module/Makefile

31 lines
654 B

KSRC ?= /lib/modules/$(shell uname -r)/build
KBUILD := $(KSRC)
M ?= $(CURDIR)
export M
include rtpengine-kmod.mk
EXTRA_CFLAGS+= -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\""
obj-m += xt_RTPENGINE.o
.PHONY: modules clean patch install
modules:
$(MAKE) -C $(KBUILD) M=$(CURDIR) O=$(KBUILD) modules
clean:
$(MAKE) -C $(KBUILD) M=$(CURDIR) clean || true
rm -f rtpengine-kmod.mk
patch:
../utils/patch-kernel magic "$(CURDIR)" "$(KERNEL)" "$(RTPENGINE_VERSION)"
install:
install -D xt_RTPENGINE.ko $(DESTDIR)/lib/modules/$(shell uname -r)/updates/xt_RTPENGINE.ko
depmod -a
rtpengine-kmod.mk:
./gen-rtpengine-kmod-flags >$@