################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := cs-rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include Libraries/Driver/src/subdir.mk
-include Libraries/CM3/src/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
SECONDARY_FLASH += \
LPC1758_RAD.hex \

SECONDARY_LIST += \
LPC1758_RAD.lst \

SECONDARY_SIZE += \
LPC1758_RAD.siz \


# All Target
all: LPC1758_RAD.elf secondary-outputs

# Tool invocations
LPC1758_RAD.elf: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: ARM Sourcery Windows GCC C Linker'
	arm-none-eabi-gcc -T"C:\workspace\LPC1758_RAD\Linker\LPC1758.ld" -nostartfiles -L"C:\workspace\LPC1758_RAD\Linker" -Wl,-Map,LPC1758_RAD.map -mcpu=cortex-m3 -mthumb -g3 -gdwarf-2 -o "LPC1758_RAD.elf" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

LPC1758_RAD.hex: LPC1758_RAD.elf
	@echo 'Invoking: ARM Sourcery Windows GNU Create Flash Image'
	arm-none-eabi-objcopy -O ihex LPC1758_RAD.elf  "LPC1758_RAD.hex"
	@echo 'Finished building: $@'
	@echo ' '

LPC1758_RAD.lst: LPC1758_RAD.elf
	@echo 'Invoking: ARM Sourcery Windows GNU Create Listing'
	arm-none-eabi-objdump -h -S LPC1758_RAD.elf > "LPC1758_RAD.lst"
	@echo 'Finished building: $@'
	@echo ' '

LPC1758_RAD.siz: LPC1758_RAD.elf
	@echo 'Invoking: ARM Sourcery Windows GNU Print Size'
	arm-none-eabi-size  --format=berkeley LPC1758_RAD.elf
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(SECONDARY_SIZE)$(OBJS)$(C_DEPS)$(ASM_DEPS)$(SECONDARY_FLASH)$(EXECUTABLES)$(SECONDARY_LIST)$(S_UPPER_DEPS) LPC1758_RAD.elf
	-@echo ' '

secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
