]> git.zerfleddert.de Git - proxmark3-svn/blame - armsrc/Makefile
port adam's changes to add cursor pos in plot
[proxmark3-svn] / armsrc / Makefile
CommitLineData
e6b13a57 1PATH=..\..\devkitARM\bin;%PATH%\r
6658905f 2CC = arm-elf-gcc\r
3AS = arm-elf-as\r
4LD = arm-elf-ld\r
5OBJCOPY = arm-elf-objcopy\r
6\r
7OBJDIR = obj\r
8\r
9INCLUDE = -I../include\r
10\r
11INCLUDES = ../include/proxmark3.h ../include/at91sam7s128.h ../include/config_gpio.h ../include/usb_cmd.h apps.h\r
12LIB = "..\..\devkitARM\lib\gcc\arm-elf\4.1.0\interwork"\r
13\r
aa4d9d9b 14# Add the "-DWITH_LCD" flag in CLFAGS to add support for LCD\r
15# and add OBJLCD to OBJ too\r
6658905f 16CFLAGS = -O6 -c $(INCLUDE) -Wall\r
17\r
aa4d9d9b 18OBJLCD = $(OBJDIR)/fonts.o \\r
19 $(OBJDIR)/LCD.o\r
20\r
6658905f 21OBJ = $(OBJDIR)/start.o \\r
22 $(OBJDIR)/appmain.o \\r
23 $(OBJDIR)/fpga.o \\r
24 $(OBJDIR)/iso14443.o \\r
25 $(OBJDIR)/iso14443a.o \\r
26 $(OBJDIR)/iso15693.o \\r
aa4d9d9b 27 $(OBJDIR)/util.o\r
6658905f 28\r
29OBJFPGA = \\r
30 $(OBJDIR)/fpgaimg.o\r
31\r
32OBJCOMMON = \\r
33 $(OBJDIR)/usb.o\r
34\r
35all: osimage.s19\r
36\r
37$(OBJDIR)/fpgaimage.s19: $(OBJDIR)/fpgaimg.o\r
38 @echo obj/fpgaimage.s19\r
39 @$(LD) -g -Tldscript-fpga -o $(OBJDIR)\fpgaimage.elf $(OBJDIR)/fpgaimg.o\r
40 @$(OBJCOPY) -Osrec --srec-forceS3 $(OBJDIR)\fpgaimage.elf $(OBJDIR)\fpgaimage.s19\r
41\r
42$(OBJDIR)/osimage.s19: $(OBJ) $(OBJCOMMON)\r
43 @echo obj/osimage.s19\r
44 @$(LD) -g -Tldscript -o $(OBJDIR)\osimage.elf $(OBJ) $(OBJCOMMON) $(LIB)\libgcc.a\r
45 @$(OBJCOPY) -Osrec --srec-forceS3 $(OBJDIR)\osimage.elf $(OBJDIR)\osimage.s19\r
46\r
47osimage.s19: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19\r
48 @echo osimage.s19\r
49\r
50$(OBJ): $(@B).c $(INCLUDES)\r
51 @echo $(@B).c\r
52 @$(CC) $(CFLAGS) -mthumb -mthumb-interwork $(@B).c -o $(OBJDIR)/$(@B).o\r
53\r
54$(OBJCOMMON): ../common/$(@B).c $(INCLUDES)\r
55 @echo $(@B).c\r
56 @$(CC) $(CFLAGS) -mthumb -mthumb-interwork ../common/$(@B).c -o $(OBJDIR)/$(@B).o\r
57\r
58$(OBJFPGA): $(@B).c $(INCLUDES)\r
59 @echo $(@B).c\r
60 @$(CC) $(CFLAGS) -mthumb -mthumb-interwork $(@B).c -o $(OBJDIR)/$(@B).o\r
61\r
62clean:\r
63 del /q obj\*.o\r
64 del /q obj\*.elf\r
65 del /q obj\*.s19\r
Impressum, Datenschutz