kpatch/kpatch-build/Makefile
2014-03-13 12:28:35 -05:00

22 lines
373 B
Makefile

include ../Makefile.inc
CFLAGS += -I../kmod/core -Wall -g
LDFLAGS = -lelf
TARGETS = create-diff-object add-patches-section link-vmlinux-syms
all: $(TARGETS)
%: %.c
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
install: all
$(INSTALL) -d $(LIBEXECDIR)
$(INSTALL) $(TARGETS) $(LIBEXECDIR)
$(INSTALL) -d $(BINDIR)
$(INSTALL) kpatch-build $(BINDIR)
clean:
$(RM) $(TARGETS)