]> cvs.zerfleddert.de Git - proxmark3-svn/blame - armsrc/Makefile
Change make calls in the cockpit batch files
[proxmark3-svn] / armsrc / Makefile
CommitLineData
7e931bbd 1# Makefile for armsrc, see ../common/Makefile.common for common settings\r
2include ../common/Makefile.common\r
6658905f 3\r
7e931bbd 4APP_INCLUDES = apps.h\r
6658905f 5\r
7e931bbd 6# Add the "-DWITH_LCD" flag in APP_CLFAGS to add support for LCD\r
aa4d9d9b 7# and add OBJLCD to OBJ too\r
7e931bbd 8APP_CFLAGS = -O6\r
6658905f 9\r
aa4d9d9b 10OBJLCD = $(OBJDIR)/fonts.o \\r
11 $(OBJDIR)/LCD.o\r
12\r
6658905f 13OBJ = $(OBJDIR)/start.o \\r
14 $(OBJDIR)/appmain.o \\r
15 $(OBJDIR)/fpga.o \\r
9bea179a 16 $(OBJDIR)/lfops.o \\r
6658905f 17 $(OBJDIR)/iso14443.o \\r
18 $(OBJDIR)/iso14443a.o \\r
19 $(OBJDIR)/iso15693.o \\r
7e931bbd 20 $(OBJDIR)/util.o \\r
21 $(OBJDIR)/usb.o\r
6658905f 22\r
23OBJFPGA = \\r
24 $(OBJDIR)/fpgaimg.o\r
25\r
7e931bbd 26all: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19\r
6658905f 27\r
7e931bbd 28$(OBJDIR)/fpgaimage.elf: $(OBJDIR)/fpgaimg.o\r
29 $(LD) -g -Tldscript-fpga -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
6658905f 30\r
7e931bbd 31$(OBJDIR)/osimage.elf: $(OBJ) $(OBJCOMMON) $(ARMLIB)/libgcc.a\r
32 $(LD) -g -Tldscript -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
6658905f 33\r
7e931bbd 34$(OBJDIR)/%.s19: $(OBJDIR)/%.elf\r
35 $(OBJCOPY) -Osrec --srec-forceS3 $^ $@\r
6658905f 36\r
7e931bbd 37$(OBJ) $(OBJFPGA): $(OBJDIR)/%.o: %.c $(INCLUDES)\r
38 $(CC) $(CFLAGS) -mthumb -mthumb-interwork $< -o $@\r
6658905f 39\r
40clean:\r
7e931bbd 41 $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r
42 $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r
43 $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r
44 $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r
45\r
46.PHONY: all clean help\r
47help:\r
48 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r
49 @echo Possible targets:\r
50 @echo + all - Make both:\r
51 @echo + osimage.s19 - The OS image\r
52 @echo + fpgaimage.s19 - The FPGA image\r
53 @echo + clean - Clean $(OBJDIR)\r
Impressum, Datenschutz