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

Subversion Repositories ion

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

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

Rev 90 Rev 92
Line 17... Line 17...
 
 
clean:
clean:
        -$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
        -$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
 
 
hello: hello.c
hello: hello.c
        $(AS_MIPS) -o startup.o $(SRC_DIR)/common/startup.s
        $(AS_MIPS) -o startup.o --defsym RUN_FROM_BRAM=1 $(SRC_DIR)/common/startup.s
        $(GCC_MIPS) $(CFLAGS) -o baremetal.o $(SRC_DIR)/common/baremetal.c
        $(GCC_MIPS) $(CFLAGS) -DRUN_FROM_BRAM -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 startup.o hello.o baremetal.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

powered by: WebSVN 2.1.0

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