]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - bootrom/Makefile
Move most rules to Makefile.common
[proxmark3-svn] / bootrom / Makefile
... / ...
CommitLineData
1# Makefile for bootrom, see ../common/Makefile.common for common settings\r
2\r
3OBJJTAG = $(OBJDIR)/bootrom.o $(OBJDIR)/ram-reset.o $(OBJDIR)/usb.o\r
4OBJFLASH = $(OBJDIR)/flash-reset.o $(OBJDIR)/fromflash.o\r
5\r
6THUMBSRC = usb.c fromflash.c bootrom.c\r
7ASMSRC = ram-reset.s flash-reset.s\r
8\r
9# Do not move this inclusion before the definition of {THUMB,ASM,ARM}{OBJ,SRC}\r
10include ../common/Makefile.common\r
11\r
12all: bootrom-merged.s19\r
13\r
14bootrom-merged.s19: $(OBJDIR)/bootrom.s19 $(OBJDIR)/bootrom-forjtag.s19\r
15 perl ../tools/merge-srec.pl $(OBJDIR)/bootrom.s19 $(OBJDIR)/bootrom-forjtag.s19 > bootrom-merged.s19\r
16\r
17$(OBJDIR)/bootrom.elf: $(OBJFLASH)\r
18 $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
19\r
20$(OBJDIR)/bootrom-forjtag.elf: $(OBJJTAG)\r
21 $(LD) -g -Tldscript-ram-jtag --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
22\r
23clean:\r
24 $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r
25 $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r
26 $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r
27 $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r
28 $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r
29 $(DELETE) bootrom-merged.s19\r
30\r
31.PHONY: all clean help\r
32help:\r
33 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r
34 @echo Possible targets:\r
35 @echo + all - Make bootrom-merged.s19, the main bootrom\r
36 @echo + clean - Clean $(OBJDIR)\r
Impressum, Datenschutz