mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-18 06:03:55 +03:00
301cc2bfb0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 lines
577 B
Makefile
21 lines
577 B
Makefile
DESTDIR=
|
|
PREFIX=/usr
|
|
BINDIR=${PREFIX}/libexec/qemu-server
|
|
SERVICEDIR=/lib/systemd/system
|
|
|
|
CC ?= gcc
|
|
CFLAGS += -O2 -fanalyzer -Werror -Wall -Wextra -Wpedantic -Wtype-limits -Wl,-z,relro -std=gnu11
|
|
|
|
query-machine-capabilities: query-machine-capabilities.c
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
.PHONY: install
|
|
install: query-machine-capabilities
|
|
install -d ${DESTDIR}/${BINDIR}
|
|
install -m 0755 query-machine-capabilities ${DESTDIR}${BINDIR}
|
|
install -m 0644 pve-query-machine-capabilities.service ${DESTDIR}${SERVICEDIR}
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f query-machine-capabilities
|