mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-08 21:33:33 +00:00
Adapt dm-monitor and acrnctl to use the helper functions and new message definitions in acrn_mngr.h. These jobs must be done in one commit to avoid build problems: 1. message transmission and callback registration code are moved to libacrn-mngr.a, so old functions in dm-monitor could be removed to make code clean; 2. remove unnecessary monior_msg.h; 3. minor changes to acrnctl accordingly. Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Wang, Yu <yu1.wang@intel.com> signed-off-by: Yan Like <like.yan@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
22 lines
545 B
Makefile
22 lines
545 B
Makefile
|
|
OUT_DIR ?= .
|
|
|
|
all: $(OUT_DIR)/libacrn-mngr.a $(OUT_DIR)/acrnctl
|
|
|
|
$(OUT_DIR)/libacrn-mngr.a: acrn_mngr.c acrn_mngr.h
|
|
$(CC) -c acrn_mngr.c -DMNGR_DEBUG -I../../devicemodel/include -Wall -g
|
|
ar -cr $@ acrn_mngr.o
|
|
cp ./acrn_mngr.h $(OUT_DIR)/
|
|
|
|
$(OUT_DIR)/acrnctl: acrnctl.c
|
|
$(CC) -o $(OUT_DIR)/acrnctl acrnctl.c -I../../devicemodel/include -Wall -g
|
|
|
|
clean:
|
|
rm -f $(OUT_DIR)/acrnctl
|
|
rm -f acrn_mngr.o
|
|
rm -f $(OUT_DIR)/libacrn-mngr.a
|
|
|
|
install: $(OUT_DIR)/acrnctl
|
|
install -d $(DESTDIR)/usr/bin
|
|
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnctl
|