acrn-hypervisor/misc/debug_tools/acrn_crashlog/common/Makefile
Xie, nanlin 0ab5db9cf9 tools: rename and category content into debug tools and services
1. Rename folder name with "_"
2. Category acrn_crashlog, acrn_log, acrn_trace into debug_tools folder and acrn_bridge, life_mngr, acrn_manager into services.

Tracked-On: #5644
Signed-off-by: Xie, nanlin <nanlin.xie@intel.com>
2021-01-27 11:08:28 +08:00

24 lines
542 B
Makefile

objects = log_sys.o \
strutils.o \
cmdutils.o \
fsutils.o
all: check_obj $(objects)
check_obj:
@if [ ! -d $(BUILDDIR)/common/obj ]; then \
mkdir -p $(BUILDDIR)/common/obj/; \
fi
$(objects):%.o:%.c
$(CC) -c $(CFLAGS) $(INCLUDE) $< -o $(BUILDDIR)/common/obj/$@
.PHONY:clean
clean:
@echo "Clean objects and binaries"
@if [ -d $(BUILDDIR)/common/obj ]; then \
find $(BUILDDIR)/common/obj -name "*.o" -exec $(RM) {} \; 2>&1 || exit 0; \
fi
@if [ -d $(BUILDDIR)/common/obj ]; then \
$(RM) -r $(BUILDDIR)/common/obj ; \
fi