2018-05-24 15:53:32 +08:00
|
|
|
|
|
|
|
OUT_DIR ?= .
|
|
|
|
|
2018-06-01 17:54:05 +08:00
|
|
|
$(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c $(TOOLS_OUT)/libacrn-mngr.a
|
|
|
|
gcc -o $@ cbc_lifecycle.c -pthread -L$(TOOLS_OUT) -lacrn-mngr
|
2018-05-24 15:53:32 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(OUT_DIR)/cbc_lifecycle
|
|
|
|
|
2018-05-25 09:08:41 +08:00
|
|
|
install: $(OUT_DIR)/cbc_lifecycle cbc_lifecycle.service
|
2018-05-24 15:53:32 +08:00
|
|
|
install -d $(DESTDIR)/usr/bin
|
2018-05-25 09:08:41 +08:00
|
|
|
install -t $(DESTDIR)/usr/bin $<
|
2018-07-02 11:42:20 +08:00
|
|
|
install -d $(DESTDIR)/usr/lib/systemd/system/
|
|
|
|
install -p -m 0644 cbc_lifecycle.service $(DESTDIR)/usr/lib/systemd/system/
|