]> git.zerfleddert.de Git - proxmark3-svn/blame - armsrc/Makefile
Add basic LEGIC RF communication in tag simulation mode
[proxmark3-svn] / armsrc / Makefile
CommitLineData
7e931bbd 1# Makefile for armsrc, see ../common/Makefile.common for common settings\r
6658905f 2\r
7e931bbd 3APP_INCLUDES = apps.h\r
6658905f 4\r
d3ae0de7 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
6658905f 9\r
d3ae0de7 10#SRC_LCD = fonts.c LCD.c\r
11SRC_ISO15693 = iso15693.c\r
12SRC_ISO14443a = iso14443a.c\r
13SRC_ISO14443b = iso14443.c\r
0fc0fca5 14\r
e73e7172 15THUMBSRC = start.c \\r
d3ae0de7 16 $(SRC_LCD) \\r
17 $(SRC_ISO15693) \\r
0fc0fca5 18 appmain.c \\r
0fc0fca5 19 lfops.c \\r
0fc0fca5 20 util.c \\r
0fa9ca5b 21 hitag2.c \\r
a7247d85 22 legicrf.c \\r
0fc0fca5 23 usb.c\r
24\r
25# These are to be compiled in ARM mode\r
d3ae0de7 26ARMSRC = fpgaloader.c \\r
27 $(SRC_ISO14443a) \\r
28 $(SRC_ISO14443b)\r
aa4d9d9b 29\r
e73e7172 30# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC\r
0fc0fca5 31include ../common/Makefile.common\r
6658905f 32\r
7e931bbd 33all: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19\r
6658905f 34\r
e73e7172 35$(OBJDIR)/fpga.o: fpga.bit\r
36 $(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
6658905f 37\r
4271e82d 38$(OBJDIR)/fullimage.elf: $(VERSIONOBJ) $(OBJDIR)/fpga.o $(THUMBOBJ) $(ARMOBJ) $(ARMLIB)/libgcc.a\r
7e931bbd 39 $(LD) -g -Tldscript -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
6658905f 40\r
e73e7172 41$(OBJDIR)/fpgaimage.elf: $(OBJDIR)/fullimage.elf\r
4271e82d 42 $(OBJCOPY) -F elf32-littlearm --only-section .fpgaimage $^ $@ \r
e73e7172 43\r
44$(OBJDIR)/osimage.elf: $(OBJDIR)/fullimage.elf\r
4271e82d 45 $(OBJCOPY) -F elf32-littlearm --remove-section .fpgaimage $^ $@\r
e73e7172 46\r
6658905f 47clean:\r
7e931bbd 48 $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r
49 $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r
50 $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r
51 $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r
0fc0fca5 52 $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r
8a6aec16 53 $(DELETE) version.c\r
7e931bbd 54\r
55.PHONY: all clean help\r
56help:\r
57 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r
58 @echo Possible targets:\r
8652988d 59 @echo + all - Make both:\r
60 @echo + $(OBJDIR)/osimage.s19 - The OS image\r
61 @echo + $(OBJDIR)/fpgaimage.s19 - The FPGA image\r
62 @echo + clean - Clean $(OBJDIR)\r
0fc0fca5 63\r
Impressum, Datenschutz