create target for binary file archive (linux version)

This commit is contained in:
adam@algroup.co.uk 2010-05-09 12:17:42 +00:00
commit bd84638614
5 changed files with 33 additions and 4 deletions

View file

@ -24,7 +24,12 @@ APP_CFLAGS = -I.
# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
include ../common/Makefile.common
all: $(OBJDIR)/bootrom.s19
OBJS = $(OBJDIR)/bootrom.s19
all: $(OBJS)
tarbin: $(OBJS)
$(TAR) $(TARFLAGS) ../proxmark3-$(platform)-bin.tar $(OBJS:%=bootrom/%) $(OBJS:%.s19=bootrom/%.elf)
$(OBJDIR)/bootrom.elf: $(VERSIONOBJ) $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ)
$(CC) $(LDFLAGS) -Wl,-T,ldscript-flash,-Map,$(patsubst %.elf,%.map,$@) -o $@ $^ $(LIBS)