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

Subversion Repositories plasma

[/] [plasma/] [tags/] [V3_0/] [tools/] [makefile] - Diff between revs 350 and 352

Only display areas with differences | Details | Blame | View Log

Rev 350 Rev 352
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.
# The CC_X86 is for compiling tools on your PC.
# The CC_X86 is for compiling tools on your PC.
# The GCC_MIPS is for compiling code on the target.
# The GCC_MIPS is for compiling code on the target.
# Convert_bin changes test.exe into code.txt which is used by the VHDL.
# Convert_bin changes test.exe into code.txt which is used by the VHDL.
#CC_X86 = gcc_x86 -O
#CC_X86 = gcc_x86 -O
CC_X86 = cl /O1
CC_X86 = cl /O1
CFLAGS = -O2 -Wall -c -s
CFLAGS = -O2 -Wall -c -s
GCC_MIPS = gcc $(CFLAGS)
GCC_MIPS = gcc $(CFLAGS)
AS_MIPS = as
AS_MIPS = as
LD_MIPS = ld
LD_MIPS = ld
DUMP_MIPS = objdump
DUMP_MIPS = objdump
all: convert_bin.exe mlite.exe tracehex.exe bintohex.exe ram_image.exe
all: convert_bin.exe mlite.exe tracehex.exe bintohex.exe ram_image.exe
        @echo make targets = count, opcodes, pi, test, run, tohex, toimage, rtos
        @echo make targets = count, opcodes, pi, test, run, tohex, toimage, rtos
clean:
clean:
        -del *.o *.obj *.exe *.map *.lst *.hex *.txt
        -del *.o *.obj *.exe *.map *.lst *.hex *.txt
convert_bin.exe: convert.c
convert_bin.exe: convert.c
        @$(CC_X86) -o convert_bin.exe convert.c
        @$(CC_X86) -o convert_bin.exe convert.c
mlite.exe: mlite.c
mlite.exe: mlite.c
        @$(CC_X86) -o mlite.exe mlite.c -DWIN32
        @$(CC_X86) -o mlite.exe mlite.c -DWIN32
tracehex.exe: tracehex.c
tracehex.exe: tracehex.c
        @$(CC_X86) -o tracehex.exe tracehex.c
        @$(CC_X86) -o tracehex.exe tracehex.c
bintohex.exe: bintohex.c
bintohex.exe: bintohex.c
        @$(CC_X86) -o bintohex.exe bintohex.c
        @$(CC_X86) -o bintohex.exe bintohex.c
ram_image.exe: ram_image.c
ram_image.exe: ram_image.c
        @$(CC_X86) -o ram_image.exe ram_image.c
        @$(CC_X86) -o ram_image.exe ram_image.c
opcodes: all
opcodes: all
        $(AS_MIPS) -o opcodes.o opcodes.asm
        $(AS_MIPS) -o opcodes.o opcodes.asm
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe opcodes.o
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe opcodes.o
        -@$(DUMP_MIPS) --disassemble test.exe > test.lst
        -@$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
opcodes2: all
opcodes2: all
        $(AS_MIPS) -o opcodes.o opcodes.asm
        $(AS_MIPS) -o opcodes.o opcodes.asm
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe opcodes.o
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe opcodes.o
        -@$(DUMP_MIPS) --disassemble test.exe > test.lst
        -@$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
test: all
test: all
        $(AS_MIPS) -o boot.o boot.asm
        $(AS_MIPS) -o boot.o boot.asm
        $(GCC_MIPS) test.c
        $(GCC_MIPS) test.c
        $(GCC_MIPS) no_os.c
        $(GCC_MIPS) no_os.c
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
                boot.o test.o no_os.o
                boot.o test.o no_os.o
        -@$(DUMP_MIPS) --disassemble test.exe > test.lst
        -@$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
count: all
count: all
        $(AS_MIPS) -o boot.o boot.asm
        $(AS_MIPS) -o boot.o boot.asm
        $(GCC_MIPS) count.c
        $(GCC_MIPS) count.c
        $(GCC_MIPS) no_os.c
        $(GCC_MIPS) no_os.c
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
                boot.o count.o no_os.o
                boot.o count.o no_os.o
        -$(DUMP_MIPS) --disassemble test.exe > test.lst
        -$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
count2: all
count2: all
        $(AS_MIPS) -o boot.o boot.asm
        $(AS_MIPS) -o boot.o boot.asm
        $(GCC_MIPS) count.c
        $(GCC_MIPS) count.c
        $(GCC_MIPS) no_os.c
        $(GCC_MIPS) no_os.c
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \
                boot.o count.o no_os.o
                boot.o count.o no_os.o
        -$(DUMP_MIPS) --disassemble test.exe > test.lst
        -$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
pi: all
pi: all
        $(AS_MIPS) -o boot.o boot.asm
        $(AS_MIPS) -o boot.o boot.asm
        $(GCC_MIPS) pi.c
        $(GCC_MIPS) pi.c
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
                boot.o pi.o
                boot.o pi.o
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
pi2: all
pi2: all
        $(AS_MIPS) -o boot.o boot.asm
        $(AS_MIPS) -o boot.o boot.asm
        $(GCC_MIPS) pi.c
        $(GCC_MIPS) pi.c
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \
                boot.o pi.o
                boot.o pi.o
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
bootldr: all
bootldr: all
        $(AS_MIPS) -o boot.o boot.asm
        $(AS_MIPS) -o boot.o boot.asm
        $(GCC_MIPS) bootldr.c
        $(GCC_MIPS) bootldr.c
        $(GCC_MIPS) no_os.c
        $(GCC_MIPS) no_os.c
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \
                boot.o bootldr.o no_os.o
                boot.o bootldr.o no_os.o
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
        convert_bin
        convert_bin
        copy code.txt ..\vhdl
        copy code.txt ..\vhdl
# Run a MIPS opcode simulator
# Run a MIPS opcode simulator
run: mlite.exe
run: mlite.exe
        @mlite test.bin
        @mlite test.bin
disassemble:
disassemble:
        -@mlite test.bin BD > test.txt
        -@mlite test.bin BD > test.txt
# Used by Altera FPGAs for ram image
# Used by Altera FPGAs for ram image
tohex:
tohex:
        bintohex test2.exe
        bintohex test2.exe
        copy code*.hex ..\vhdl
        copy code*.hex ..\vhdl
# Used by Xilinx FPGAs for ram image
# Used by Xilinx FPGAs for ram image
toimage:
toimage:
        ram_image ..\vhdl\ram_xilinx.vhd ..\vhdl\code.txt ..\vhdl\ram_image.vhd
        ram_image ..\vhdl\ram_xilinx.vhd ..\vhdl\code.txt ..\vhdl\ram_image.vhd
 
 

powered by: WebSVN 2.1.0

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