kpatch/kpatch-build/Makefile
Seth Jennings 8656355291 append to CFLAGS instead of overwrite
Honor user set CFLAGS

Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-02-17 11:45:48 -06:00

20 lines
317 B
Makefile

include ../Makefile.inc
CFLAGS += -I../kmod/core
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) kpatch-build $(LIBEXECDIR)
clean:
$(RM) $(TARGETS)