2018-05-28 14:51:23 +00:00
|
|
|
#*******************************************************************************
|
|
|
|
# Ledger SDK
|
|
|
|
# (c) 2017 Ledger
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#*******************************************************************************
|
|
|
|
|
2019-11-11 13:25:33 +00:00
|
|
|
# temporary redef, to ensure wider compliance of the SDK with pre-1.6 apps
|
2022-10-20 15:53:03 +00:00
|
|
|
ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_NANOX TARGET_NANOS2))
|
2022-02-02 15:54:52 +00:00
|
|
|
SDK_SOURCE_PATH += lib_bagl
|
2022-10-20 15:53:03 +00:00
|
|
|
else
|
|
|
|
SDK_SOURCE_PATH += lib_bagl lib_ux
|
2019-11-11 13:25:33 +00:00
|
|
|
endif
|
2018-05-28 14:51:23 +00:00
|
|
|
|
2022-10-20 15:53:03 +00:00
|
|
|
# adding the correct target header to sources
|
|
|
|
SDK_SOURCE_PATH += target/$(TARGET)/include
|
2018-05-28 14:51:23 +00:00
|
|
|
|
2023-10-04 09:47:39 +00:00
|
|
|
# Expose all SDK header files with their full relative path to the SDK root folder
|
|
|
|
INCLUDES_PATH += ${BOLOS_SDK}
|
|
|
|
|
2021-01-27 14:47:27 +00:00
|
|
|
SOURCE_PATH += $(dir $(foreach libdir, $(APP_SOURCE_PATH), $(dir $(shell find $(libdir) -name '*.[csS]')))) $(BOLOS_SDK)/src $(foreach libdir, $(SDK_SOURCE_PATH), $(dir $(shell find $(BOLOS_SDK)/$(libdir) -name '*.[csS]')))
|
|
|
|
SOURCE_FILES := $(foreach path, $(SOURCE_PATH),$(shell find $(path) -name '*.[csS]') ) $(GLYPH_DESTC)
|
2023-02-15 16:50:48 +00:00
|
|
|
INCLUDES_PATH += $(dir $(foreach libdir, $(SDK_SOURCE_PATH), $(dir $(shell find $(BOLOS_SDK)/$(libdir) -name '*.h')))) include $(BOLOS_SDK)/include $(BOLOS_SDK)/include/arm $(dir $(shell find $(APP_SOURCE_PATH) -name '*.h')) $(GLYPH_SRC_DIR)
|
2018-05-28 14:51:23 +00:00
|
|
|
|
2023-02-15 16:50:48 +00:00
|
|
|
VPATH += $(dir $(SOURCE_FILES))
|
|
|
|
OBJECT_FILES += $(sort $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(basename $(notdir $(SOURCE_FILES))))))
|
|
|
|
DEPEND_FILES += $(sort $(addprefix $(DEP_DIR)/, $(addsuffix .d, $(basename $(notdir $(SOURCE_FILES))))))
|
2018-05-28 14:51:23 +00:00
|
|
|
|
2019-11-11 13:25:33 +00:00
|
|
|
include $(BOLOS_SDK)/Makefile.rules_generic
|