2014-02-13 16:04:35 +00:00
|
|
|
include ../Makefile.inc
|
2014-02-13 03:53:05 +00:00
|
|
|
|
2014-05-30 12:39:14 +00:00
|
|
|
CFLAGS += -I../kmod/patch -Iinsn -Wall -g
|
2014-02-13 16:04:35 +00:00
|
|
|
LDFLAGS = -lelf
|
2014-02-11 16:25:48 +00:00
|
|
|
|
2014-05-14 20:59:05 +00:00
|
|
|
TARGETS = create-diff-object
|
2014-02-11 16:25:48 +00:00
|
|
|
|
2014-02-13 16:04:35 +00:00
|
|
|
all: $(TARGETS)
|
|
|
|
|
2014-05-30 12:39:14 +00:00
|
|
|
create-diff-object: create-diff-object.c list.h lookup.c lookup.h insn/insn.c \
|
|
|
|
insn/inat.c insn/inat-tables.c insn/asm/inat.h \
|
|
|
|
insn/asm/insn.h insn/asm/inat_types.h
|
|
|
|
$(CC) $(CFLAGS) create-diff-object.c lookup.c insn/insn.c insn/inat.c -o $@ $(LDFLAGS)
|
2014-05-06 22:15:38 +00:00
|
|
|
|
2014-02-13 16:04:35 +00:00
|
|
|
install: all
|
|
|
|
$(INSTALL) -d $(LIBEXECDIR)
|
2014-03-10 14:24:40 +00:00
|
|
|
$(INSTALL) $(TARGETS) $(LIBEXECDIR)
|
|
|
|
$(INSTALL) -d $(BINDIR)
|
|
|
|
$(INSTALL) kpatch-build $(BINDIR)
|
2014-02-11 16:25:48 +00:00
|
|
|
|
2014-03-20 14:29:06 +00:00
|
|
|
uninstall:
|
|
|
|
$(RM) -R $(LIBEXECDIR)
|
|
|
|
$(RM) $(BINDIR)/kpatch-build
|
|
|
|
|
2014-02-11 16:25:48 +00:00
|
|
|
clean:
|
2014-02-13 16:04:35 +00:00
|
|
|
$(RM) $(TARGETS)
|