/
MichaelColonel
/
ICControl_firmware
Обзор
Документация
Войти
/
MichaelColonel
/
ICControl_firmware
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Release/makefile
103 строки
3 KB
Mikhail Polkovnikov
ICControl firmware initial commit
16 дек 2024, 12:54
16 дек 2024, 12:54
db062b0
Код
Авторство
О чём код?
################################################################################ # 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 subdir.mk -include objects.mk ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(ASM_DEPS)),) -include $(ASM_DEPS) endif ifneq ($(strip $(S_DEPS)),) -include $(S_DEPS) endif ifneq ($(strip $(S_UPPER_DEPS)),) -include $(S_UPPER_DEPS) endif ifneq ($(strip $(C_DEPS)),) -include $(C_DEPS) endif endif -include ../makefile.defs OPTIONAL_TOOL_DEPS := \ $(wildcard ../makefile.defs) \ $(wildcard ../makefile.init) \ $(wildcard ../makefile.targets) \ BUILD_ARTIFACT_NAME := Cabin26A_IC BUILD_ARTIFACT_EXTENSION := elf BUILD_ARTIFACT_PREFIX := BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),) # Add inputs and outputs from these tool invocations to the build variables LSS += \ Cabin26A_IC.lss \ FLASH_IMAGE += \ Cabin26A_IC.hex \ EEPROM_IMAGE += \ Cabin26A_IC.eep \ SIZEDUMMY += \ sizedummy \ # All Target all: main-build # Main-build Target main-build: Cabin26A_IC.elf secondary-outputs # Tool invocations Cabin26A_IC.elf: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS) @echo 'Building target: $@' @echo 'Invoking: AVR C Linker' avr-gcc -Wl,-Map,Cabin26A_IC.map -mmcu=atmega128 -o "Cabin26A_IC.elf" $(OBJS) $(USER_OBJS) $(LIBS) @echo 'Finished building target: $@' @echo ' ' Cabin26A_IC.lss: Cabin26A_IC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS) @echo 'Invoking: AVR Create Extended Listing' -avr-objdump -h -S Cabin26A_IC.elf >"Cabin26A_IC.lss" @echo 'Finished building: $@' @echo ' ' Cabin26A_IC.hex: Cabin26A_IC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS) @echo 'Create Flash image (ihex format)' -avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex Cabin26A_IC.elf "Cabin26A_IC.hex" @echo 'Finished building: $@' @echo ' ' Cabin26A_IC.eep: Cabin26A_IC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS) @echo 'Create eeprom image (ihex format)' -avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex Cabin26A_IC.elf "Cabin26A_IC.eep" @echo 'Finished building: $@' @echo ' ' sizedummy: Cabin26A_IC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS) @echo 'Invoking: Print Size' -avr-size --format=avr --mcu=atmega128 Cabin26A_IC.elf @echo 'Finished building: $@' @echo ' ' # Other Targets clean: -$(RM) $(FLASH_IMAGE)$(ELFS)$(OBJS)$(ASM_DEPS)$(EEPROM_IMAGE)$(S_DEPS)$(SIZEDUMMY)$(S_UPPER_DEPS)$(LSS)$(C_DEPS) Cabin26A_IC.elf -@echo ' ' secondary-outputs: $(LSS) $(FLASH_IMAGE) $(EEPROM_IMAGE) $(SIZEDUMMY) .PHONY: all clean dependents main-build -include ../makefile.targets