]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - armsrc/Makefile
Rename at91sam7s512.h for case sensitive filesystems
[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#remove one of the following defines and comment out the relevant line\r
6#in the next section to remove that particular feature from compilation \r
7APP_CFLAGS = -O6 -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b\r
8#-DWITH_LCD\r
9\r
10#SRC_LCD = fonts.c LCD.c\r
11SRC_ISO15693 = iso15693.c\r
12SRC_ISO14443a = iso14443a.c\r
13SRC_ISO14443b = iso14443.c\r
14\r
15THUMBSRC = start.c \\r
16 $(SRC_LCD) \\r
17 $(SRC_ISO15693) \\r
18 appmain.c \\r
19 lfops.c \\r
20 util.c \\r
21 hitag2.c \\r
22 usb.c\r
23\r
24# These are to be compiled in ARM mode\r
25ARMSRC = fpgaloader.c \\r
26 $(SRC_ISO14443a) \\r
27 $(SRC_ISO14443b)\r
28\r
29# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC\r
30include ../common/Makefile.common\r
31\r
32all: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19\r
33\r
34$(OBJDIR)/fpga.o: fpga.bit\r
35 $(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
36\r
37$(OBJDIR)/fullimage.elf: $(VERSIONOBJ) $(OBJDIR)/fpga.o $(THUMBOBJ) $(ARMOBJ) $(ARMLIB)/libgcc.a\r
38 $(LD) -g -Tldscript -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
39\r
40$(OBJDIR)/fpgaimage.elf: $(OBJDIR)/fullimage.elf\r
41 $(OBJCOPY) -F elf32-littlearm --only-section .fpgaimage $^ $@ \r
42\r
43$(OBJDIR)/osimage.elf: $(OBJDIR)/fullimage.elf\r
44 $(OBJCOPY) -F elf32-littlearm --remove-section .fpgaimage $^ $@\r
45\r
46clean:\r
47 $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r
48 $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r
49 $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r
50 $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r
51 $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r
52 $(DELETE) version.c\r
53\r
54.PHONY: all clean help\r
55help:\r
56 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r
57 @echo Possible targets:\r
58 @echo + all - Make both:\r
59 @echo + $(OBJDIR)/osimage.s19 - The OS image\r
60 @echo + $(OBJDIR)/fpgaimage.s19 - The FPGA image\r
61 @echo + clean - Clean $(OBJDIR)\r
62\r
Impressum, Datenschutz