Skip to content
makefile 1.57 KiB
Newer Older
natsfr's avatar
natsfr committed
################################################################################
# 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 startup/subdir.mk
-include src/subdir.mk
-include StdPeriph_Driver/src/subdir.mk
-include CMSIS/core/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 

# All Target
all: spino_code.elf

# Tool invocations
spino_code.elf: $(OBJS) $(USER_OBJS) C:\Users\nats\Documents\project\spino\spino_code\LinkerScript.ld
natsfr's avatar
natsfr committed
	@echo 'Building target: $@'
	@echo 'Invoking: MCU GCC Linker'
	arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -T"C:\Users\nats\Documents\project\spino\spino_code\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "spino_code.elf" @"objects.list" $(USER_OBJS) $(LIBS) -lm
natsfr's avatar
natsfr committed
	@echo 'Finished building target: $@'
	@echo ' '
	$(MAKE) --no-print-directory post-build

# Other Targets
clean:
	-$(RM) *
	-@echo ' '

post-build:
	-@echo 'Generating binary and Printing size information:'
	arm-none-eabi-objcopy -O binary "spino_code.elf" "spino_code.bin"
	arm-none-eabi-size "spino_code.elf"
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY: post-build

-include ../makefile.targets