14 lines
387 B
Makefile
14 lines
387 B
Makefile
|
|
OUT_DIR ?= .
|
|
|
|
$(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c $(TOOLS_OUT)/libacrn-mngr.a
|
|
gcc -o $@ cbc_lifecycle.c -pthread -L$(TOOLS_OUT) -lacrn-mngr
|
|
|
|
clean:
|
|
rm $(OUT_DIR)/cbc_lifecycle
|
|
|
|
install: $(OUT_DIR)/cbc_lifecycle cbc_lifecycle.service
|
|
install -d $(DESTDIR)/usr/bin
|
|
install -t $(DESTDIR)/usr/bin $<
|
|
install -p -D -m 0644 cbc_lifecycle.service $(DESTDIR)/usr/lib/systemd/system/
|