mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-06 03:56:18 +00:00
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>
17 lines
427 B
Makefile
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
|