#
# This file is the makefile for building CAL app utils library.
#
ifeq ($(RULES_MAKE), )
include $(PDK_INSTALL_PATH)/ti/build/Rules.make
else
include $(RULES_MAKE)
endif

MODULE_NAME = cal_app_utils_baremetal
BUILD_OS_TYPE=baremetal

SRCDIR = . src src/V0
INCDIR = . src src/V0

# List all the external components/interfaces, whose interface header files
# need to be included for this component
INCLUDE_EXTERNAL_INTERFACES = pdk
INCLUDE_INTERNAL_INTERFACES = csl

# Common source files and CFLAGS across all platforms and cores
SRCS_COMMON = calutils_mem.c
ifeq ($(BOARD),$(filter $(BOARD), am65xx_evm))
SRCS_COMMON += calapp_sensor.c calutils_ub95x.c
SRCS_COMMON += calutils_ub964_sat88_ov1063x.c calutils_ub964_sat88_ov1063x_reg.c
endif

PACKAGE_SRCS_COMMON = .
CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS) $(CAL_CFLAGS)
CFLAGS_LOCAL_COMMON += -DBARE_METAL

# Core/SoC/platform specific source files and CFLAGS
# Example:
#   SRCS_<core/SoC/platform-name> =
#   CFLAGS_LOCAL_<core/SoC/platform-name> =

# Include common make files
ifeq ($(MAKERULEDIR), )
#Makerule path not defined, define this and assume relative path from ROOTDIR
  MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
  export MAKERULEDIR
endif
include $(MAKERULEDIR)/common.mk

# OBJs and libraries are built by using rule defined in rules_<target>.mk
#     and need not be explicitly specified here

# Nothing beyond this point
