sdk-hwV1.3/lichee/xr806/appos/src/driver/component/Makefile

45 lines
960 B
Makefile
Executable File

#
# Rules for building library
#
# ----------------------------------------------------------------------------
# common rules
# ----------------------------------------------------------------------------
ROOT_PATH := ../../..
include $(ROOT_PATH)/gcc.mk
# ----------------------------------------------------------------------------
# library and objects
# ----------------------------------------------------------------------------
LIBS := libcomponent.a
ifeq ($(CONFIG_CHIP_TYPE), "xr806")
DIRS_IGNORE = ./csi_camera%
else
DIRS_IGNORE =
endif
ifeq ($(CONFIG_AXP_CORE), y)
DIRS_IGNORE +=
else
DIRS_IGNORE += ./axp%
endif
ifeq ($(CONFIG_DA217), y)
DIRS_IGNORE +=
else
DIRS_IGNORE += ./da217%
endif
DIRS_ALL := $(shell find . -type d)
DIRS := $(filter-out $(DIRS_IGNORE),$(DIRS_ALL))
SRCS := $(sort $(basename $(foreach dir,$(DIRS),$(wildcard $(dir)/*.[csS]))))
OBJS := $(addsuffix .o,$(SRCS))
# library make rules
include $(LIB_MAKE_RULES)