acrn-hypervisor/tools/acrnlog/Makefile
Yan, Like c84766a869 Tools: add Makefile for all tools
Add a Makefile under ./tools to avoid changing top-level Makefile frequently

Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
Signed-off-by: Yan, Like <like.yan@intel.com>
2018-06-07 09:56:33 +08:00

17 lines
427 B
Makefile

OUT_DIR ?= .
all:
$(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
cp acrnlog.service $(OUT_DIR)/acrnlog.service
clean:
rm -f $(OUT_DIR)/acrnlog
rm -f $(OUT_DIR)/acrnlog.service
install: $(OUT_DIR)/acrnlog
install -d $(DESTDIR)/usr/bin
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnlog
install -d $(DESTDIR)/usr/lib/systemd/system
install -p -D -m 0644 $(OUT_DIR)/acrnlog.service $(DESTDIR)/usr/lib/systemd/system