added notes for how to setup android dev environment in Fedora - /athena/notes/androi...
[athena:athena.git] / firmware / ref / archive-code / blink_led / Release / makefile
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 subdir.mk
12 -include objects.mk
13
14 ifneq ($(MAKECMDGOALS),clean)
15 ifneq ($(strip $(C_DEPS)),)
16 -include $(C_DEPS)
17 endif
18 ifneq ($(strip $(ASM_DEPS)),)
19 -include $(ASM_DEPS)
20 endif
21 ifneq ($(strip $(S_DEPS)),)
22 -include $(S_DEPS)
23 endif
24 ifneq ($(strip $(S_UPPER_DEPS)),)
25 -include $(S_UPPER_DEPS)
26 endif
27 endif
28
29 -include ../makefile.defs
30
31 # Add inputs and outputs from these tool invocations to the build variables 
32 FLASH_IMAGE += \
33 blink_led.hex \
34
35 SIZEDUMMY += \
36 sizedummy \
37
38 AVRDUDEDUMMY += \
39 avrdudedummy \
40
41
42 # All Target
43 all: blink_led.elf secondary-outputs
44
45 # Tool invocations
46 blink_led.elf: $(OBJS) $(USER_OBJS)
47         @echo 'Building target: $@'
48         @echo 'Invoking: AVR C Linker'
49         avr-gcc -Wl,-Map,blink_led.map -mmcu=atmega168 -o "blink_led.elf" $(OBJS) $(USER_OBJS) $(LIBS)
50         @echo 'Finished building target: $@'
51         @echo ' '
52
53 blink_led.hex: blink_led.elf
54         @echo 'Create Flash image (ihex format)'
55         -avr-objcopy -R .eeprom -O ihex blink_led.elf  "blink_led.hex"
56         @echo 'Finished building: $@'
57         @echo ' '
58
59 sizedummy: blink_led.elf
60         @echo 'Invoking: Print Size'
61         -avr-size --format=avr --mcu=atmega168 blink_led.elf
62         @echo 'Finished building: $@'
63         @echo ' '
64
65 avrdudedummy: blink_led.elf
66         @echo 'Invoking: AVRDude'
67         /usr/bin/avrdude -pm168 -carduino -Uflash:w:blink_led.hex:a
68         @echo 'Finished building: $@'
69         @echo ' '
70
71 # Other Targets
72 clean:
73         -$(RM) $(OBJS)$(C_DEPS)$(ASM_DEPS)$(FLASH_IMAGE)$(ELFS)$(AVRDUDEDUMMY)$(S_DEPS)$(SIZEDUMMY)$(S_UPPER_DEPS) blink_led.elf
74         -@echo ' '
75
76 secondary-outputs: $(FLASH_IMAGE) $(SIZEDUMMY) $(AVRDUDEDUMMY)
77
78 .PHONY: all clean dependents
79 .SECONDARY:
80
81 -include ../makefile.targets