blob: bd5caefcd46b290d9f3c1be95c8b5e054fae6479 [file] [log] [blame]
Roman Okhrimenko89ecdac2020-02-28 17:05:55 +02001################################################################################
2# \file libs.mk
3# \version 1.0
4#
5# \brief
6# Makefile to describe libraries needed for Cypress MCUBoot based applications.
7#
8################################################################################
9# \copyright
10# Copyright 2018-2019 Cypress Semiconductor Corporation
11# SPDX-License-Identifier: Apache-2.0
12#
13# Licensed under the Apache License, Version 2.0 (the "License");
14# you may not use this file except in compliance with the License.
15# You may obtain a copy of the License at
16#
17# http://www.apache.org/licenses/LICENSE-2.0
18#
19# Unless required by applicable law or agreed to in writing, software
20# distributed under the License is distributed on an "AS IS" BASIS,
21# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22# See the License for the specific language governing permissions and
23# limitations under the License.
24################################################################################
25
26################################################################################
27# PDL library
28################################################################################
29PDL_VERSION = 121
30#
Roman Okhrimenko4bc28102021-02-01 19:31:41 +020031CUR_LIBS_PATH = $(PRJ_DIR)/libs
Roman Okhrimenko89ecdac2020-02-28 17:05:55 +020032
Roman Okhrimenko0c7aebc2020-09-02 13:37:51 +030033SOURCES_WATCHDOG := $(wildcard $(CUR_LIBS_PATH)/watchdog/*.c)
Roman Okhrimenko89ecdac2020-02-28 17:05:55 +020034
Roman Okhrimenko0c7aebc2020-09-02 13:37:51 +030035INCLUDE_DIRS_WATCHDOG := $(CUR_LIBS_PATH)/watchdog
Roman Okhrimenko89ecdac2020-02-28 17:05:55 +020036
Roman Okhrimenko89ecdac2020-02-28 17:05:55 +020037# Collected source files for libraries
Roman Okhrimenko0c7aebc2020-09-02 13:37:51 +030038SOURCES_LIBS += $(SOURCES_WATCHDOG)
Roman Okhrimenkodc0ca082023-06-21 20:49:51 +030039SOURCES_LIBS += $(SOURCES_FIH)
40
Roman Okhrimenko89ecdac2020-02-28 17:05:55 +020041
42# Collected include directories for libraries
Roman Okhrimenko977b3752022-03-31 14:40:48 +030043INCLUDE_DIRS_LIBS += $(addprefix -I,$(INCLUDE_DIRS_WATCHDOG))
Roman Okhrimenkodc0ca082023-06-21 20:49:51 +030044INCLUDE_DIRS_LIBS += $(addprefix -I,$(INCLUDE_DIRS_FIH))
45
Roman Okhrimenko977b3752022-03-31 14:40:48 +030046
47###############################################################################
48# Print debug information about all settings used and/or set in this file
49ifeq ($(VERBOSE), 1)
50$(info #### libs.mk ####)
Dovhal Artem (CSUKR CSS ICW SW FW 1)f7a3d1b2022-04-01 15:07:37 +000051$(info APP_CORE <-- $(APP_CORE))
Roman Okhrimenko977b3752022-03-31 14:40:48 +030052$(info CUR_LIBS_PATH <-- $(CUR_LIBS_PATH))
53$(info INCLUDE_DIRS_HAL_BLINKY <-> $(INCLUDE_DIRS_HAL_BLINKY))
54$(info INCLUDE_DIRS_LIBS --> $(INCLUDE_DIRS_LIBS))
55$(info INCLUDE_DIRS_RETARGET_IO <-> $(INCLUDE_DIRS_RETARGET_IO))
56$(info INCLUDE_DIRS_WATCHDOG <-> $(INCLUDE_DIRS_WATCHDOG))
57$(info PLATFORM <-- $(PLATFORM))
58$(info PRJ_DIR <-- $(PRJ_DIR))
59$(info SOURCES_HAL_BLINKY <-> $(SOURCES_HAL_BLINKY))
60$(info SOURCES_LIBS --> $(SOURCES_LIBS))
61$(info SOURCES_RETARGET_IO <-> $(SOURCES_RETARGET_IO))
62$(info SOURCES_WATCHDOG <-> $(SOURCES_WATCHDOG))
Dovhal Artem (CSUKR CSS ICW SW FW 1)f7a3d1b2022-04-01 15:07:37 +000063$(info THIS_APP_PATH <-- $(THIS_APP_PATH))
Roman Okhrimenko977b3752022-03-31 14:40:48 +030064endif