qubes-linux-utils/qmemman/Makefile

23 lines
663 B
Makefile
Raw Normal View History

CC=gcc
CFLAGS=-Wall -Wextra -Werror -g -O3
all: meminfo-writer
2014-04-21 01:14:32 +00:00
_XENSTORE_H=$(shell ls /usr/include/xenstore.h)
ifneq "$(_XENSTORE_H)" ""
CFLAGS+= -DUSE_XENSTORE_H
endif
meminfo-writer: meminfo-writer.o
$(CC) -g -o meminfo-writer meminfo-writer.o -lxenstore
install:
install -D meminfo-writer $(DESTDIR)/usr/sbin/meminfo-writer
2014-09-25 15:20:14 +00:00
ifeq (1,${DEBIANBUILD})
install -d $(DESTDIR)/lib/systemd/system/
install -m 0644 qubes-meminfo-writer.service $(DESTDIR)/lib/systemd/system/
else
install -d $(DESTDIR)/usr/lib/systemd/system/
install -m 0644 qubes-meminfo-writer*service $(DESTDIR)/usr/lib/systemd/system/
2014-04-21 01:24:12 +00:00
endif
clean:
rm -f meminfo-writer xenstore-watch *.o