X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/15c4dc5ace24e6081d1597b011148f156cdd599e..346ad5fbbb275f51ac3ceed118d4f9164f3278da:/armsrc/Makefile diff --git a/armsrc/Makefile b/armsrc/Makefile index 0aa4ea6b..1c0088e2 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -1,10 +1,16 @@ +#----------------------------------------------------------------------------- +# This code is licensed to you under the terms of the GNU GPL, version 2 or, +# at your option, any later version. See the LICENSE.txt file for the text of +# the license. +#----------------------------------------------------------------------------- # Makefile for armsrc, see ../common/Makefile.common for common settings +#----------------------------------------------------------------------------- APP_INCLUDES = apps.h #remove one of the following defines and comment out the relevant line #in the next section to remove that particular feature from compilation -APP_CFLAGS = -O6 -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b +APP_CFLAGS = -O2 -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b #-DWITH_LCD #SRC_LCD = fonts.c LCD.c @@ -19,6 +25,7 @@ THUMBSRC = start.c \ $(SRC_LF) \ appmain.c printf.c \ util.c \ + string.c \ usb.c # These are to be compiled in ARM mode @@ -42,8 +49,8 @@ all: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19 $(OBJDIR)/fpga.o: fpga.bit $(OBJCOPY) -O elf32-littlearm -I binary -B arm --redefine-sym _binary____fpga_fpga_bit_start=_binary_fpga_bit_start --redefine-sym _binary____fpga_fpga_bit_end=_binary_fpga_bit_end --prefix-sections=fpga_bit $^ $@ -$(OBJDIR)/fullimage.elf: $(VERSIONOBJ) $(OBJDIR)/fpga.o $(THUMBOBJ) $(ARMOBJ) $(LIBGCC) - $(LD) -g -Tldscript -Map=$(patsubst %.elf,%.map,$@) -o $@ $^ +$(OBJDIR)/fullimage.elf: $(VERSIONOBJ) $(OBJDIR)/fpga.o $(THUMBOBJ) $(ARMOBJ) + $(CC) $(LDFLAGS) -Wl,-T,ldscript,-Map,$(patsubst %.elf,%.map,$@) -o $@ $^ $(LIBS) $(OBJDIR)/fpgaimage.elf: $(OBJDIR)/fullimage.elf $(OBJCOPY) -F elf32-littlearm --only-section .fpgaimage $^ $@