]>
Commit | Line | Data |
---|---|---|
1 | # Makefile for armsrc, see ../common/Makefile.common for common settings\r | |
2 | include ../common/Makefile.common\r | |
3 | \r | |
4 | APP_INCLUDES = apps.h\r | |
5 | \r | |
6 | # Add the "-DWITH_LCD" flag in APP_CLFAGS to add support for LCD\r | |
7 | # and add OBJLCD to OBJ too\r | |
8 | APP_CFLAGS = -O6\r | |
9 | \r | |
10 | OBJLCD = $(OBJDIR)/fonts.o \\r | |
11 | $(OBJDIR)/LCD.o\r | |
12 | \r | |
13 | OBJ = $(OBJDIR)/start.o \\r | |
14 | $(OBJDIR)/appmain.o \\r | |
15 | $(OBJDIR)/fpga.o \\r | |
16 | $(OBJDIR)/lfops.o \\r | |
17 | $(OBJDIR)/iso14443.o \\r | |
18 | $(OBJDIR)/iso14443a.o \\r | |
19 | $(OBJDIR)/iso15693.o \\r | |
20 | $(OBJDIR)/util.o \\r | |
21 | $(OBJDIR)/usb.o\r | |
22 | \r | |
23 | OBJFPGA = \\r | |
24 | $(OBJDIR)/fpgaimg.o\r | |
25 | \r | |
26 | all: $(OBJDIR)/osimage.s19 $(OBJDIR)/fpgaimage.s19\r | |
27 | \r | |
28 | $(OBJDIR)/fpgaimage.elf: $(OBJDIR)/fpgaimg.o\r | |
29 | $(LD) -g -Tldscript-fpga -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
30 | \r | |
31 | $(OBJDIR)/osimage.elf: $(OBJ) $(OBJCOMMON) $(ARMLIB)/libgcc.a\r | |
32 | $(LD) -g -Tldscript -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
33 | \r | |
34 | $(OBJDIR)/%.s19: $(OBJDIR)/%.elf\r | |
35 | $(OBJCOPY) -Osrec --srec-forceS3 $^ $@\r | |
36 | \r | |
37 | $(OBJ) $(OBJFPGA): $(OBJDIR)/%.o: %.c $(INCLUDES)\r | |
38 | $(CC) $(CFLAGS) -mthumb -mthumb-interwork $< -o $@\r | |
39 | \r | |
40 | clean:\r | |
41 | $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r | |
42 | $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r | |
43 | $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r | |
44 | $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r | |
45 | \r | |
46 | .PHONY: all clean help\r | |
47 | help:\r | |
48 | @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r | |
49 | @echo Possible targets:\r | |
50 | @echo + all - Make both:\r | |
51 | @echo + osimage.s19 - The OS image\r | |
52 | @echo + fpgaimage.s19 - The FPGA image\r | |
53 | @echo + clean - Clean $(OBJDIR)\r |