]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/Makefile
8ad442f1aca4caa708380d296bbde16d4caa2dee
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 \
25 $(OBJDIR
)/iso14443.o \
26 $(OBJDIR
)/iso14443a.o \
27 $(OBJDIR
)/iso15693.o \
38 $(OBJDIR
)/fpgaimage.s19
: $(OBJDIR
)/fpgaimg.o
39 @echo obj
/fpgaimage.s19
40 @
$(LD
) -g
-Tldscript-fpga
-o
$(OBJDIR
)\fpgaimage.elf
-Map
=obj
/fpgaimage.map
$(OBJDIR
)/fpgaimg.o
41 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)\fpgaimage.s19
43 $(OBJDIR
)/osimage.s19
: $(OBJ
) $(OBJCOMMON
)
45 @
$(LD
) -g
-Tldscript
-o
$(OBJDIR
)\osimage.elf
$(OBJ
) $(OBJCOMMON
) -Map
=obj
/osimage.map
$(LIB
)\libgcc.a
46 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\osimage.elf
$(OBJDIR
)\osimage.s19
48 osimage.s19
: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
51 $(OBJ
): $(@B
).c
$(INCLUDES
)
53 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
55 $(OBJCOMMON
): ..
/common
/$(@B
).c
$(INCLUDES
)
57 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork ..
/common
/$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
59 $(OBJFPGA
): $(@B
).c
$(INCLUDES
)
61 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o