OpenCores
URL https://opencores.org/ocsvn/ion/ion/trunk

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [hello/] [makefile] - Diff between revs 66 and 90

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 66 Rev 90
Line 16... Line 16...
LFLAGS = -Ttext $(BRAM_START) -Tdata $(XRAM_START) -eentry -I elf32-big
LFLAGS = -Ttext $(BRAM_START) -Tdata $(XRAM_START) -eentry -I elf32-big
 
 
clean:
clean:
        -$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
        -$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
 
 
hello:
hello: hello.c
        $(AS_MIPS) -o boot.o $(SRC_DIR)/common/boot.s
        $(AS_MIPS) -o startup.o $(SRC_DIR)/common/startup.s
        $(GCC_MIPS) -o no_os.o $(SRC_DIR)/common/no_os.c
        $(GCC_MIPS) $(CFLAGS) -o baremetal.o $(SRC_DIR)/common/baremetal.c
        $(GCC_MIPS) -o hello.o hello.c
        $(GCC_MIPS) -o hello.o hello.c
        $(LD_MIPS) $(LFLAGS) -Map hello.map -s -N -o hello.axf boot.o hello.o no_os.o
        $(LD_MIPS) $(LFLAGS) -Map hello.map -s -N -o hello.axf startup.o hello.o baremetal.o
        -@$(DUMP_MIPS) -m mips --disassemble hello.axf > hello.lst
        -@$(DUMP_MIPS) -m mips --disassemble hello.axf > hello.lst
# Extract object code to be placed in code space
# Extract object code to be placed in code space
        $(COPY_MIPS) -I elf32-big -O binary hello.axf hello.code
        $(COPY_MIPS) -I elf32-big -O binary hello.axf hello.code
# Extract object code to be placed in data space
# Extract object code to be placed in data space
        $(COPY_MIPS) -I elf32-big -j.data -j.bss -O binary hello.axf hello.data
        $(COPY_MIPS) -I elf32-big -j.data -j.bss -O binary hello.axf hello.data

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.