
include $(MAKE_INCLUDE_GEN)

.PHONY: all clean


#*****************************************************************************#
#                               Object FILE LIST                              #
#*****************************************************************************#
OBJS = 

#*****************************************************************************#
#                        RULES TO GENERATE TARGETS                            #
#*****************************************************************************#

# Define the Rules to build the core targets
all: CORE_TARGETS
ifeq ($(CONFIG_KERNEL),y)	
	make -C freertos all
	make -C freertos/freertos_v10.2.0 all
endif
	make -C stdlib_wrap all

#*****************************************************************************#
#              GENERATE OBJECT FILE 
#*****************************************************************************#
CORE_TARGETS: $(OBJS)

	


#*****************************************************************************#
#                        RULES TO CLEAN TARGETS                               #
#*****************************************************************************#
clean: 
ifeq ($(CONFIG_KERNEL),y)	
	make -C freertos/freertos_v10.2.0 clean
	make -C freertos clean
	make -C os_dep clean
endif
	make -C stdlib_wrap clean
	



