mirror of
https://github.com/dynup/kpatch
synced 2024-12-14 01:14:33 +00:00
170c8b1ba1
Signed-off-by: Seth Jennings <sjenning@redhat.com>
25 lines
487 B
Makefile
25 lines
487 B
Makefile
include ../Makefile.inc
|
|
|
|
CFLAGS += -I../kmod/patch -Wall -g
|
|
LDFLAGS = -lelf
|
|
|
|
TARGETS = create-diff-object
|
|
|
|
all: $(TARGETS)
|
|
|
|
create-diff-object: create-diff-object.c list.h lookup.c lookup.h
|
|
$(CC) $(CFLAGS) create-diff-object.c lookup.c -o $@ $(LDFLAGS)
|
|
|
|
install: all
|
|
$(INSTALL) -d $(LIBEXECDIR)
|
|
$(INSTALL) $(TARGETS) $(LIBEXECDIR)
|
|
$(INSTALL) -d $(BINDIR)
|
|
$(INSTALL) kpatch-build $(BINDIR)
|
|
|
|
uninstall:
|
|
$(RM) -R $(LIBEXECDIR)
|
|
$(RM) $(BINDIR)/kpatch-build
|
|
|
|
clean:
|
|
$(RM) $(TARGETS)
|