]>
git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/Makefile
1acfdd88c700d85bcf0479d34ca9a1235c9e9a81
1 # Makefile for armsrc, see ../common/Makefile.common for common settings
2 include ..
/common
/Makefile.common
6 # Add the "-DWITH_LCD" flag in APP_CLFAGS to add support for LCD
7 # and add OBJLCD to OBJ too
10 OBJLCD
= $(OBJDIR
)/fonts.o \
13 OBJ
= $(OBJDIR
)/start.o \
17 $(OBJDIR
)/iso14443.o \
18 $(OBJDIR
)/iso14443a.o \
19 $(OBJDIR
)/iso15693.o \
26 all: $(OBJDIR
)/osimage.s19
$(OBJDIR
)/fpgaimage.s19
28 $(OBJDIR
)/fpgaimage.elf
: $(OBJDIR
)/fpgaimg.o
29 $(LD
) -g
-Tldscript-fpga
-Map
=$(patsubst %.elf
,%.map
,$@
) -o
$@
$^
31 $(OBJDIR
)/osimage.elf
: $(OBJ
) $(OBJCOMMON
) $(ARMLIB
)/libgcc.a
32 $(LD
) -g
-Tldscript
-Map
=$(patsubst %.elf
,%.map
,$@
) -o
$@
$^
34 $(OBJDIR
)/%.s19
: $(OBJDIR
)/%.elf
35 $(OBJCOPY
) -Osrec
--srec-forceS3
$^
$@
37 $(OBJ
) $(OBJFPGA
): $(OBJDIR
)/%.o
: %.c
$(INCLUDES
)
38 $(CC
) $(CFLAGS
) -mthumb
-mthumb-interwork
$< -o
$@
41 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.o
42 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.elf
43 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.s19
44 $(DELETE
) $(OBJDIR
)$(PATHSEP
)*.map
46 .PHONY
: all clean help
48 @echo Multi-OS Makefile
, you are running on
$(DETECTED_OS
)
49 @echo Possible targets
:
50 @echo
+ all - Make both
:
51 @echo
+ osimage.s19
- The OS image
52 @echo
+ fpgaimage.s19
- The FPGA image
53 @echo
+ clean - Clean
$(OBJDIR
)