]>
git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/Makefile
1 PATH
=..\..\devkitARM
\bin
;%PATH
%
5 OBJCOPY
= arm-elf-objcopy
11 INCLUDES
= ..
/include/proxmark3.h ..
/include/at91sam7s128.h ..
/include/config_gpio.h ..
/include/usb_cmd.h apps.h
12 LIB
= "..\..\devkitARM\lib\gcc\arm-elf\4.1.0\interwork"
14 # Add the "-DWITH_LCD" flag in CLFAGS to add support for LCD
15 # and add OBJLCD to OBJ too
16 CFLAGS
= -O6
-c
$(INCLUDE
) -Wall
18 OBJLCD
= $(OBJDIR
)/fonts.o \
21 OBJ
= $(OBJDIR
)/start.o \
24 $(OBJDIR
)/iso14443.o \
25 $(OBJDIR
)/iso14443a.o \
26 $(OBJDIR
)/iso15693.o \
37 $(OBJDIR
)/fpgaimage.s19
: $(OBJDIR
)/fpgaimg.o
38 @echo obj
/fpgaimage.s19
39 @
$(LD
) -g
-Tldscript-fpga
-o
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)/fpgaimg.o
40 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)\fpgaimage.s19
42 $(OBJDIR
)/osimage.s19
: $(OBJ
) $(OBJCOMMON
)
44 @
$(LD
) -g
-Tldscript
-o
$(OBJDIR
)\osimage.elf
$(OBJ
) $(OBJCOMMON
) $(LIB
)\libgcc.a
45 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\osimage.elf
$(OBJDIR
)\osimage.s19
47 osimage.s19
: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
50 $(OBJ
): $(@B
).c
$(INCLUDES
)
52 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
54 $(OBJCOMMON
): ..
/common
/$(@B
).c
$(INCLUDES
)
56 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork ..
/common
/$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
58 $(OBJFPGA
): $(@B
).c
$(INCLUDES
)
60 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o