mirror of
https://github.com/dynup/kpatch
synced 2024-12-11 16:04:40 +00:00
78bfbcc4a5
uname -p returns "unknown" on many systems effectively breaking the build. Replace it with uname -m which yields the correct architecture.
26 lines
606 B
Makefile
26 lines
606 B
Makefile
SHELL = /bin/sh
|
|
CC = gcc
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
ARCH = $(shell uname -m)
|
|
|
|
PREFIX ?= /usr/local
|
|
LIBDIR ?= lib
|
|
LIBEXEC ?= libexec
|
|
BINDIR = $(DESTDIR)$(PREFIX)/bin
|
|
SBINDIR = $(DESTDIR)$(PREFIX)/sbin
|
|
MODULESDIR = $(DESTDIR)$(PREFIX)/$(LIBDIR)/kpatch
|
|
LIBEXECDIR = $(DESTDIR)$(PREFIX)/$(LIBEXEC)/kpatch
|
|
DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch
|
|
MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
|
|
SYSTEMDDIR = $(DESTDIR)$(PREFIX)/lib/systemd/system
|
|
|
|
# The core module is only supported on x86_64
|
|
ifeq ($(ARCH),x86_64)
|
|
BUILDMOD ?= yes
|
|
endif
|
|
|
|
.PHONY: all install clean
|
|
.DEFAULT: all
|