################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include modules/nrfx/mdk/subdir.mk
-include modules/nrfx/drivers/src/prs/subdir.mk
-include modules/nrfx/drivers/src/subdir.mk
-include integration/legacy/subdir.mk
-include external/utf_converter/subdir.mk
-include external/segger_rtt/subdir.mk
-include external/fprintf/subdir.mk
-include external/fatfs/src/option/subdir.mk
-include external/fatfs/src/subdir.mk
-include external/fatfs/port/subdir.mk
-include components/softdevice/common/subdir.mk
-include components/libraries/util/subdir.mk
-include components/libraries/twi_mngr/subdir.mk
-include components/libraries/timer/subdir.mk
-include components/libraries/strerror/subdir.mk
-include components/libraries/spi_mngr/subdir.mk
-include components/libraries/sdcard/subdir.mk
-include components/libraries/scheduler/subdir.mk
-include components/libraries/ringbuf/subdir.mk
-include components/libraries/queue/subdir.mk
-include components/libraries/pwr_mgmt/subdir.mk
-include components/libraries/memobj/subdir.mk
-include components/libraries/log/src/subdir.mk
-include components/libraries/hardfault/subdir.mk
-include components/libraries/fstorage/subdir.mk
-include components/libraries/fifo/subdir.mk
-include components/libraries/fds/subdir.mk
-include components/libraries/experimental_section_vars/subdir.mk
-include components/libraries/crc16/subdir.mk
-include components/libraries/button/subdir.mk
-include components/libraries/bsp/subdir.mk
-include components/libraries/block_dev/sdc/subdir.mk
-include components/libraries/block_dev/ram/subdir.mk
-include components/libraries/block_dev/empty/subdir.mk
-include components/libraries/balloc/subdir.mk
-include components/libraries/atomic_flags/subdir.mk
-include components/libraries/atomic_fifo/subdir.mk
-include components/libraries/atomic/subdir.mk
-include components/boards/subdir.mk
-include components/ble/peer_manager/subdir.mk
-include components/ble/nrf_ble_qwr/subdir.mk
-include components/ble/nrf_ble_gatt/subdir.mk
-include components/ble/common/subdir.mk
-include components/ble/ble_services/ble_nus/subdir.mk
-include components/ble/ble_link_ctx_manager/subdir.mk
-include components/ble/ble_db_discovery/subdir.mk
-include components/ble/ble_advertising/subdir.mk
-include User/LowLevelLayer/subdir.mk
-include User/HardwareAbstractionLayer/subdir.mk
-include User/ApplicationLayer/TaskMain/subdir.mk
-include User/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
SECONDARY_FLASH += \
demo_sd_card.hex \

SECONDARY_SIZE += \
demo_sd_card.siz \


# All Target
all: demo_sd_card.elf secondary-outputs

# Tool invocations
demo_sd_card.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: Cross ARM GNU C++ Linker'
	arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -O1 -ffunction-sections -fdata-sections -Wall -fno-strict-aliasing -fno-builtin  -g3 -ggdb -T "/Users/constantin/Documents/workspace/demo_sd_card/gcc_nrf52.ld" -Xlinker --gc-sections -L"/Users/constantin/Documents/TUB/sensorstim/electronics/bluetoothModule/nRF5_SDK_15_3_0/modules/nrfx/mdk" -Wl,-Map,"demo_sd_card.map" --specs=nano.specs -u _printf_float -lc -lnosys -lm -o "demo_sd_card.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

demo_sd_card.hex: demo_sd_card.elf
	@echo 'Invoking: Cross ARM GNU Create Flash Image'
	arm-none-eabi-objcopy -O ihex "demo_sd_card.elf"  "demo_sd_card.hex"
	@echo 'Finished building: $@'
	@echo ' '

demo_sd_card.siz: demo_sd_card.elf
	@echo 'Invoking: Cross ARM GNU Print Size'
	arm-none-eabi-size --format=berkeley "demo_sd_card.elf"
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(CPP_DEPS) demo_sd_card.elf
	-@echo ' '

secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)

.PHONY: all clean dependents

-include ../makefile.targets
