]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/Makefile
4 OBJCOPY
= arm-elf-objcopy
10 INCLUDES
= ..
/include/proxmark3.h ..
/include/at91sam7s128.h ..
/include/config_gpio.h ..
/include/usb_cmd.h apps.h
11 LIB
= "..\..\devkitARM\lib\gcc\arm-elf\4.1.0\interwork"
13 # Add the "-DWITH_LCD" flag in CLFAGS to add support for LCD
14 # and add OBJLCD to OBJ too
15 CFLAGS
= -O6
-c
$(INCLUDE
) -Wall
17 OBJLCD
= $(OBJDIR
)/fonts.o \
20 OBJ
= $(OBJDIR
)/start.o \
23 $(OBJDIR
)/iso14443.o \
24 $(OBJDIR
)/iso14443a.o \
25 $(OBJDIR
)/iso15693.o \
36 $(OBJDIR
)/fpgaimage.s19
: $(OBJDIR
)/fpgaimg.o
37 @echo obj
/fpgaimage.s19
38 @
$(LD
) -g
-Tldscript-fpga
-o
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)/fpgaimg.o
39 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)\fpgaimage.s19
41 $(OBJDIR
)/osimage.s19
: $(OBJ
) $(OBJCOMMON
)
43 @
$(LD
) -g
-Tldscript
-o
$(OBJDIR
)\osimage.elf
$(OBJ
) $(OBJCOMMON
) $(LIB
)\libgcc.a
44 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\osimage.elf
$(OBJDIR
)\osimage.s19
46 osimage.s19
: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
49 $(OBJ
): $(@B
).c
$(INCLUDES
)
51 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
53 $(OBJCOMMON
): ..
/common
/$(@B
).c
$(INCLUDES
)
55 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork ..
/common
/$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
57 $(OBJFPGA
): $(@B
).c
$(INCLUDES
)
59 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o