]> cvs.zerfleddert.de Git - proxmark3-svn/blame - bootrom/Makefile
Move most rules to Makefile.common
[proxmark3-svn] / bootrom / Makefile
CommitLineData
7e931bbd 1# Makefile for bootrom, see ../common/Makefile.common for common settings\r
6658905f 2\r
3OBJJTAG = $(OBJDIR)/bootrom.o $(OBJDIR)/ram-reset.o $(OBJDIR)/usb.o\r
6658905f 4OBJFLASH = $(OBJDIR)/flash-reset.o $(OBJDIR)/fromflash.o\r
5\r
7e931bbd 6THUMBSRC = usb.c fromflash.c bootrom.c\r
7ASMSRC = ram-reset.s flash-reset.s\r
6658905f 8\r
0fc0fca5 9# Do not move this inclusion before the definition of {THUMB,ASM,ARM}{OBJ,SRC}\r
10include ../common/Makefile.common\r
6658905f 11\r
7e931bbd 12all: bootrom-merged.s19\r
6658905f 13\r
7e931bbd 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
6658905f 16\r
7e931bbd 17$(OBJDIR)/bootrom.elf: $(OBJFLASH)\r
18 $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
6658905f 19\r
7e931bbd 20$(OBJDIR)/bootrom-forjtag.elf: $(OBJJTAG)\r
21 $(LD) -g -Tldscript-ram-jtag --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
6658905f 22\r
6658905f 23clean:\r
7e931bbd 24 $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r
25 $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r
26 $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r
27 $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r
0fc0fca5 28 $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r
7e931bbd 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