Initial commit
This commit is contained in:
91
Release/makefile
Normal file
91
Release/makefile
Normal file
@@ -0,0 +1,91 @@
|
||||
################################################################################
|
||||
# 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 libs/uart/subdir.mk
|
||||
-include libs/led/subdir.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
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
LSS += \
|
||||
avr-lib-uart.lss \
|
||||
|
||||
FLASH_IMAGE += \
|
||||
avr-lib-uart.hex \
|
||||
|
||||
EEPROM_IMAGE += \
|
||||
avr-lib-uart.eep \
|
||||
|
||||
SIZEDUMMY += \
|
||||
sizedummy \
|
||||
|
||||
|
||||
# All Target
|
||||
all: avr-lib-uart.elf secondary-outputs
|
||||
|
||||
# Tool invocations
|
||||
avr-lib-uart.elf: $(OBJS) $(USER_OBJS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: AVR C Linker'
|
||||
avr-gcc -Wl,-Map,avr-lib-uart.map -mmcu=atmega168p -o "avr-lib-uart.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
avr-lib-uart.lss: avr-lib-uart.elf
|
||||
@echo 'Invoking: AVR Create Extended Listing'
|
||||
-avr-objdump -h -S avr-lib-uart.elf >"avr-lib-uart.lss"
|
||||
@echo 'Finished building: $@'
|
||||
@echo ' '
|
||||
|
||||
avr-lib-uart.hex: avr-lib-uart.elf
|
||||
@echo 'Create Flash image (ihex format)'
|
||||
-avr-objcopy -R .eeprom -R .fuse -R .lock -R .signature -O ihex avr-lib-uart.elf "avr-lib-uart.hex"
|
||||
@echo 'Finished building: $@'
|
||||
@echo ' '
|
||||
|
||||
avr-lib-uart.eep: avr-lib-uart.elf
|
||||
@echo 'Create eeprom image (ihex format)'
|
||||
-avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex avr-lib-uart.elf "avr-lib-uart.eep"
|
||||
@echo 'Finished building: $@'
|
||||
@echo ' '
|
||||
|
||||
sizedummy: avr-lib-uart.elf
|
||||
@echo 'Invoking: Print Size'
|
||||
-avr-size --format=avr --mcu=atmega168p avr-lib-uart.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) avr-lib-uart.elf
|
||||
-@echo ' '
|
||||
|
||||
secondary-outputs: $(LSS) $(FLASH_IMAGE) $(EEPROM_IMAGE) $(SIZEDUMMY)
|
||||
|
||||
.PHONY: all clean dependents
|
||||
|
||||
-include ../makefile.targets
|
||||
Reference in New Issue
Block a user