1 | ################################################################################
|
2 | # Automatically-generated file. Do not edit!
|
3 | ################################################################################
|
4 |
|
5 | -include ../makefile.init
|
6 |
|
7 | RM := rm -rf
|
8 |
|
9 | # All of the sources participating in the build are defined here
|
10 | -include sources.mk
|
11 | -include src/subdir.mk
|
12 | -include library/subdir.mk
|
13 | -include lib/Debug/subdir.mk
|
14 | -include lib/subdir.mk
|
15 | -include subdir.mk
|
16 | -include objects.mk
|
17 |
|
18 | ifneq ($(MAKECMDGOALS),clean)
|
19 | ifneq ($(strip $(C++_DEPS)),)
|
20 | -include $(C++_DEPS)
|
21 | endif
|
22 | ifneq ($(strip $(C_DEPS)),)
|
23 | -include $(C_DEPS)
|
24 | endif
|
25 | ifneq ($(strip $(ASM_DEPS)),)
|
26 | -include $(ASM_DEPS)
|
27 | endif
|
28 | ifneq ($(strip $(CC_DEPS)),)
|
29 | -include $(CC_DEPS)
|
30 | endif
|
31 | ifneq ($(strip $(CPP_DEPS)),)
|
32 | -include $(CPP_DEPS)
|
33 | endif
|
34 | ifneq ($(strip $(S_DEPS)),)
|
35 | -include $(S_DEPS)
|
36 | endif
|
37 | ifneq ($(strip $(CXX_DEPS)),)
|
38 | -include $(CXX_DEPS)
|
39 | endif
|
40 | ifneq ($(strip $(C_UPPER_DEPS)),)
|
41 | -include $(C_UPPER_DEPS)
|
42 | endif
|
43 | ifneq ($(strip $(S_UPPER_DEPS)),)
|
44 | -include $(S_UPPER_DEPS)
|
45 | endif
|
46 | endif
|
47 |
|
48 | -include ../makefile.defs
|
49 |
|
50 | # Add inputs and outputs from these tool invocations to the build variables
|
51 | LSS += \
|
52 | Taiwan_BOard.lss \
|
53 |
|
54 | FLASH_IMAGE += \
|
55 | Taiwan_BOard.hex \
|
56 |
|
57 | EEPROM_IMAGE += \
|
58 | Taiwan_BOard.eep \
|
59 |
|
60 | SIZEDUMMY += \
|
61 | sizedummy \
|
62 |
|
63 |
|
64 | # All Target
|
65 | all: Taiwan_BOard.elf secondary-outputs
|
66 |
|
67 | # Tool invocations
|
68 | Taiwan_BOard.elf: $(OBJS) $(USER_OBJS)
|
69 | @echo 'Building target: $@'
|
70 | @echo 'Invoking: AVR C++ Linker'
|
71 | avr-g++ -Wl,-Map,Taiwan_BOard.map,--cref -mmcu=atmega128 -o "Taiwan_BOard.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
72 | @echo 'Finished building target: $@'
|
73 | @echo ' '
|
74 |
|
75 | Taiwan_BOard.lss: Taiwan_BOard.elf
|
76 | @echo 'Invoking: AVR Create Extended Listing'
|
77 | -avr-objdump -h -S Taiwan_BOard.elf >"Taiwan_BOard.lss"
|
78 | @echo 'Finished building: $@'
|
79 | @echo ' '
|
80 |
|
81 | Taiwan_BOard.hex: Taiwan_BOard.elf
|
82 | @echo 'Create Flash image (ihex format)'
|
83 | -avr-objcopy -R .eeprom -O ihex Taiwan_BOard.elf "Taiwan_BOard.hex"
|
84 | @echo 'Finished building: $@'
|
85 | @echo ' '
|
86 |
|
87 | Taiwan_BOard.eep: Taiwan_BOard.elf
|
88 | @echo 'Create eeprom image (ihex format)'
|
89 | -avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex Taiwan_BOard.elf "Taiwan_BOard.eep"
|
90 | @echo 'Finished building: $@'
|
91 | @echo ' '
|
92 |
|
93 | sizedummy: Taiwan_BOard.elf
|
94 | @echo 'Invoking: Print Size'
|
95 | -avr-size --format=avr --mcu=atmega128 Taiwan_BOard.elf
|
96 | @echo 'Finished building: $@'
|
97 | @echo ' '
|
98 |
|
99 | # Other Targets
|
100 | clean:
|
101 | -$(RM) $(OBJS)$(C_DEPS)$(EEPROM_IMAGE)$(ELFS)$(FLASH_IMAGE)$(LSS)$(S_DEPS)$(CXX_DEPS)$(S_UPPER_DEPS)$(C++_DEPS)$(ASM_DEPS)$(CC_DEPS)$(CPP_DEPS)$(C_UPPER_DEPS)$(SIZEDUMMY) Taiwan_BOard.elf
|
102 | -@echo ' '
|
103 |
|
104 | secondary-outputs: $(LSS) $(FLASH_IMAGE) $(EEPROM_IMAGE) $(SIZEDUMMY)
|
105 |
|
106 | .PHONY: all clean dependents
|
107 | .SECONDARY:
|
108 |
|
109 | -include ../makefile.targets
|