]> git.sur5r.net Git - armstart-ibdap/blob - build/Makefile
Fix build
[armstart-ibdap] / build / Makefile
1 ################################################################################
2 # Automatically-generated file. Do not edit!
3 ################################################################################
4
5 -include ../makefile.init
6
7 RM := rm -rf
8
9 # All Target
10 all: IBDAP.axf
11
12 # All of the sources participating in the build are defined here
13 -include sources.mk
14 -include src/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 endif
23
24 -include ../makefile.defs
25
26 # Add inputs and outputs from these tool invocations to the build variables 
27
28
29
30 # Tool invocations
31 IBDAP.axf: $(OBJS) $(USER_OBJS)
32         @echo 'Building target: $@'
33         @echo 'Invoking: MCU Linker'
34         arm-none-eabi-gcc -nostdlib -Xlinker -Map="IBDAP.map" -Xlinker --gc-sections -Xlinker --trace -mcpu=cortex-m0 -mthumb -T "IBDAP.ld" -o "IBDAP.axf" $(OBJS) $(USER_OBJS) $(LIBS)
35         @echo 'Finished building target: $@'
36         @echo ' '
37         $(MAKE) --no-print-directory post-build
38
39 # Other Targets
40 clean:
41         -$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) IBDAP.axf IBDAP.bin IBDAP.map
42         -@echo ' '
43
44 post-build:
45         -@echo 'Performing post-build steps'
46         -arm-none-eabi-size "IBDAP.axf" ; arm-none-eabi-objcopy -v -O binary "IBDAP.axf" "IBDAP.bin" ; ./checksum -p LPC11U35_501 -d "IBDAP.bin"
47         -@echo ' '
48
49 .PHONY: all clean dependents
50 .SECONDARY: post-build
51
52 -include ../makefile.targets