~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to Tido/BLF-VLD/Default/makefile

  • Committer: Selene Scriven
  • Date: 2015-09-14 19:23:29 UTC
  • mto: (153.1.18 tiny25)
  • mto: This revision was merged to the branch mainline in revision 156.
  • Revision ID: ubuntu@toykeeper.net-20150914192329-0ean5s8qpnnkdbub
updated to BLF-VLD 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
LSS += \
 
33
BLF-VLD.lss \
 
34
 
 
35
FLASH_IMAGE += \
 
36
BLF-VLD.hex \
 
37
 
 
38
EEPROM_IMAGE += \
 
39
BLF-VLD.eep \
 
40
 
 
41
SIZEDUMMY += \
 
42
sizedummy \
 
43
 
 
44
 
 
45
# All Target
 
46
all: BLF-VLD.elf secondary-outputs
 
47
 
 
48
# Tool invocations
 
49
BLF-VLD.elf: $(OBJS) $(USER_OBJS)
 
50
        @echo 'Building target: $@'
 
51
        @echo 'Invoking: AVR C Linker'
 
52
        avr-gcc -Wl,-Map,BLF-VLD.map -mmcu=attiny13 -o"BLF-VLD.elf" $(OBJS) $(USER_OBJS) $(LIBS)
 
53
        @echo 'Finished building target: $@'
 
54
        @echo ' '
 
55
 
 
56
BLF-VLD.lss: BLF-VLD.elf
 
57
        @echo 'Invoking: AVR Create Extended Listing'
 
58
        -avr-objdump -h -S BLF-VLD.elf  >"BLF-VLD.lss"
 
59
        @echo 'Finished building: $@'
 
60
        @echo ' '
 
61
 
 
62
BLF-VLD.hex: BLF-VLD.elf
 
63
        @echo 'Create Flash image (ihex format)'
 
64
        -avr-objcopy -R .eeprom -O ihex BLF-VLD.elf  "BLF-VLD.hex"
 
65
        @echo 'Finished building: $@'
 
66
        @echo ' '
 
67
 
 
68
BLF-VLD.eep: BLF-VLD.elf
 
69
        @echo 'Create eeprom image (ihex format)'
 
70
        -avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex BLF-VLD.elf  "BLF-VLD.eep"
 
71
        @echo 'Finished building: $@'
 
72
        @echo ' '
 
73
 
 
74
sizedummy: BLF-VLD.elf
 
75
        @echo 'Invoking: Print Size'
 
76
        -avr-size --format=avr --mcu=attiny13 BLF-VLD.elf
 
77
        @echo 'Finished building: $@'
 
78
        @echo ' '
 
79
 
 
80
# Other Targets
 
81
clean:
 
82
        -$(RM) $(OBJS)$(C_DEPS)$(ASM_DEPS)$(EEPROM_IMAGE)$(FLASH_IMAGE)$(ELFS)$(LSS)$(S_DEPS)$(SIZEDUMMY)$(S_UPPER_DEPS) BLF-VLD.elf
 
83
        -@echo ' '
 
84
 
 
85
secondary-outputs: $(LSS) $(FLASH_IMAGE) $(EEPROM_IMAGE) $(SIZEDUMMY)
 
86
 
 
87
.PHONY: all clean dependents
 
88
.SECONDARY:
 
89
 
 
90
-include ../makefile.targets