kpatch/kmod/core/Makefile
Josh Poimboeuf 62de820aab proper makefile support
- setup the makefiles to support "make" and "make install", which builds
  the kpatch-build tools and installs everything in /usr/local.
- update kpatch-build to support new paths
- add "kpatch build" wrapper around kpatch-build
2014-02-13 16:02:10 -06:00

18 lines
348 B
Makefile

# make rules
KPATCH_BUILD ?= /usr/lib/modules/$(shell uname -r)/build
KPATCH_MAKE = $(MAKE) -C $(KPATCH_BUILD) M=$(PWD)
kpatch.ko: core.c trampoline.S
$(KPATCH_MAKE) kpatch.ko
all: kpatch.ko
clean:
$(RM) -Rf .*.o.cmd .*.ko.cmd .tmp_versions *.o *.ko *.mod.c \
Module.symvers
# kbuild rules
obj-m := kpatch.o
kpatch-y := core.o trampoline.o