]> cvs.zerfleddert.de Git - proxmark3-svn/blame_incremental - armsrc/Makefile
oops, missed a bit!
[proxmark3-svn] / armsrc / Makefile
... / ...
CommitLineData
1# Makefile for armsrc, see ../common/Makefile.common for common settings\r
2\r
3APP_INCLUDES = apps.h\r
4\r
5# Add the "-DWITH_LCD" flag in APP_CLFAGS to add support for LCD\r
6# and add SRC_LCD to THUMBSRC\r
7APP_CFLAGS = -O6\r
8\r
9SRC_LCD = fonts.c LCD.c\r
10\r
11THUMBSRC = start.c \\r
12 appmain.c \\r
13 lfops.c \\r
14 iso15693.c \\r
15 util.c \\r
16 hitag2.c \\r
17 usb.c\r
18\r
19# These are to be compiled in ARM mode\r
20ARMSRC = iso14443.c \\r
21 iso14443a.c \\r
22 fpgaloader.c\r
23\r
24# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC\r
25include ../common/Makefile.common\r
26\r
27all: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19\r
28\r
29$(OBJDIR)/fpga.o: fpga.bit\r
30 $(OBJCOPY) -O elf32-littlearm -I binary -B arm --redefine-sym _binary____fpga_fpga_bit_start=_binary_fpga_bit_start --redefine-sym _binary____fpga_fpga_bit_end=_binary_fpga_bit_end --prefix-sections=fpga_bit $^ $@\r
31\r
32$(OBJDIR)/fullimage.elf: $(VERSIONOBJ) $(OBJDIR)/fpga.o $(THUMBOBJ) $(ARMOBJ) $(ARMLIB)/libgcc.a\r
33 $(LD) -g -Tldscript -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
34\r
35$(OBJDIR)/fpgaimage.elf: $(OBJDIR)/fullimage.elf\r
36 $(OBJCOPY) -F elf32-littlearm --only-section .fpgaimage $^ $@ \r
37\r
38$(OBJDIR)/osimage.elf: $(OBJDIR)/fullimage.elf\r
39 $(OBJCOPY) -F elf32-littlearm --remove-section .fpgaimage $^ $@\r
40\r
41clean:\r
42 $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r
43 $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r
44 $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r
45 $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r
46 $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r
47 $(DELETE) version.c\r
48\r
49.PHONY: all clean help\r
50help:\r
51 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r
52 @echo Possible targets:\r
53 @echo + all - Make both:\r
54 @echo + $(OBJDIR)/osimage.s19 - The OS image\r
55 @echo + $(OBJDIR)/fpgaimage.s19 - The FPGA image\r
56 @echo + clean - Clean $(OBJDIR)\r
57\r
Impressum, Datenschutz