]>
git.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 CFLAGS
= -O6
-c
$(INCLUDE
) -Wall
15 OBJ
= $(OBJDIR
)/start.o \
18 $(OBJDIR
)/iso14443.o \
19 $(OBJDIR
)/iso14443a.o \
20 $(OBJDIR
)/iso15693.o \
33 $(OBJDIR
)/fpgaimage.s19
: $(OBJDIR
)/fpgaimg.o
34 @echo obj
/fpgaimage.s19
35 @
$(LD
) -g
-Tldscript-fpga
-o
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)/fpgaimg.o
36 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\fpgaimage.elf
$(OBJDIR
)\fpgaimage.s19
38 $(OBJDIR
)/osimage.s19
: $(OBJ
) $(OBJCOMMON
)
40 @
$(LD
) -g
-Tldscript
-o
$(OBJDIR
)\osimage.elf
$(OBJ
) $(OBJCOMMON
) $(LIB
)\libgcc.a
41 @
$(OBJCOPY
) -Osrec
--srec-forceS3
$(OBJDIR
)\osimage.elf
$(OBJDIR
)\osimage.s19
43 osimage.s19
: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
46 $(OBJ
): $(@B
).c
$(INCLUDES
)
48 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
50 $(OBJCOMMON
): ..
/common
/$(@B
).c
$(INCLUDES
)
52 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork ..
/common
/$(@B
).c
-o
$(OBJDIR
)/$(@B
).o
54 $(OBJFPGA
): $(@B
).c
$(INCLUDES
)
56 @
$(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$(@B
).c
-o
$(OBJDIR
)/$(@B
).o