#Copyright (C) 2024 CIX Technology, Inc. All Rights Reserved.
#
#The code contained herein is licensed under the GNU General Public
#License. You may obtain a copy of the GNU General Public License
#Version 2 or later at the following locations:
#
#http://www.opensource.org/licenses/gpl-license.html
#http://www.gnu.org/copyleft/gpl.html
###############################################################################
#
#    @file   Makefile
#
#    @brief  configuration file to compile the DDT tests.
#
###############################################################################
#Revision History:
#                            Modification     Tracking
#Author/core ID                  Date          Number    Description of Changes
#-------------------------   ------------    ----------  -----------------------
#Cagent Zhang                  02/16/2024      N/A         Init verison
###############################################################################
#Portability: ARM GCC
#
###############################################################################

top_srcdir              ?= $(CURDIR)/../../../

CFLAGS += -I$(top_srcdir)/include/old/

include ../cix_configs/${ARCH_PLATFORM}_deconfigs

SUBDIRS-$(CONFIG_DDT_TESTS)          := common
SUBDIRS-$(CONFIG_DDT_POWERMGR)       += powermgr
SUBDIRS-$(CONFIG_DDT_THERMAL)        += thermal

all:
	@set -e; for i in $(SUBDIRS-y); do $(MAKE) -C $$i ; done

install:
	@for i in $(SUBDIRS-y); do $(MAKE) -C $$i install ; done

clean:
	@set -e; for i in $(SUBDIRS-y); do $(MAKE) -C $$i clean ; done
