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

Subversion Repositories mlite

[/] [mlite/] [trunk/] [tools/] [makefile] - Rev 32

Go to most recent revision | Compare with Previous | Blame | View Log

all: convert.exe mips.exe tracehex.exe 

convert.exe: convert.c
        @cl convert.c

mips.exe: mips.c
        @cl mips.c

tracehex.exe: tracehex.c
        @cl tracehex.c

opcodes: all
        as -o opcodes.o opcodes.asm
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe opcodes.o
        @objdump --disassemble test.exe > test.lst
        @convert
        -@mips test2.exe BD > test.txt
        @copy code.txt ..\vhdl

test: all
        @as -o boot.o boot.asm
        gcc -DMIPS -Dmain=main2 -Wall -c -s test.c
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe boot.o test.o
        @objdump --disassemble test.exe > test.lst
        @convert
        -@mips test2.exe BD > test.txt
        @copy code.txt ..\vhdl

powc: all
        @as -o boot.o boot.asm
        gcc -DMIPS -Dmain=main2 -Wall -c -s powc.c
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe boot.o powc.o
        @objdump --disassemble test.exe > test.lst
        @convert
        -@mips test2.exe BD > test.txt
        @copy code.txt ..\vhdl

pi: all
        @as -o boot.o boot.asm
        gcc -DMIPS -Dmain=main2 -Wall -c -s pi.c
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe boot.o pi.o 
        @objdump --disassemble test.exe > test.lst
        @convert
        -@mips test2.exe BD > test.txt
        @copy code.txt ..\vhdl

run: mips.exe
        @mips test2.exe B



Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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