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

Subversion Repositories mlite

[/] [mlite/] [trunk/] [tools/] [makefile] - Diff between revs 200 and 243

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

Rev 200 Rev 243
Line 13... Line 13...
#AS_MIPS   = $(BIN_MIPS)/as
#AS_MIPS   = $(BIN_MIPS)/as
#LD_MIPS   = $(BIN_MIPS)/ld
#LD_MIPS   = $(BIN_MIPS)/ld
#DUMP_MIPS = $(BIN_MIPS)/objdump
#DUMP_MIPS = $(BIN_MIPS)/objdump
 
 
# Customize for Windows
# Customize for Windows
CC_X86 = cl /O1
CC_X86 = cl /O1 /nologo
CP = copy
CP = copy
RM = del
RM = del
BIN_MIPS = ..\gccmips_elf
BIN_MIPS = ..\gccmips_elf
VHDL_DIR = ..\vhdl
VHDL_DIR = ..\vhdl
GCC_MIPS  = $(BIN_MIPS)\gcc $(CFLAGS)
GCC_MIPS  = $(BIN_MIPS)\gcc $(CFLAGS)
Line 27... Line 27...
 
 
CFLAGS = -O2 -Wall -c -s
CFLAGS = -O2 -Wall -c -s
 
 
 
 
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe
        @echo make targets = count, opcodes, pi, test, run, tohex, toimage
        @echo make targets = count, opcodes, pi, test, run, tohex,\
 
        bootldr, toimage, etermip
 
 
clean:
clean:
        -$(RM) *.o *.obj *.map *.lst *.hex *.txt
        -$(RM) *.o *.obj *.map *.lst *.hex *.txt *.exe
 
 
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
 
 
convert_le.exe: convert.c
convert_le.exe: convert.c
Line 50... Line 51...
        @$(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
 
 
 
# Terminal program that will download a new image and supports Ethernet
 
# traffic over UART.  Get wpcap.lib from http://www.winpcap.org/.
 
etermip: etermip.c
 
        -@$(CC_X86) -o etermip.exe etermip.c wpcap.lib
 
        @echo Get wpcap.lib from http://www.winpcap.org/
 
 
 
download: etermip
 
        @echo Reset board before downloading code
 
        etermip
 
 
opcodes:
opcodes:
        $(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.axf opcodes.o
        $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf opcodes.o
        -@$(DUMP_MIPS) --disassemble test.axf > test.lst
        -@$(DUMP_MIPS) --disassemble test.axf > test.lst
        convert_bin.exe
        convert_bin.exe
Line 139... Line 150...
        @mlite.exe test.bin
        @mlite.exe test.bin
 
 
run_little_endian: mlite.exe
run_little_endian: mlite.exe
        @mlite.exe test.bin L
        @mlite.exe test.bin L
 
 
disassemble:
disassemble: mlite.exe
        -@mlite.exe test.bin BD > test.txt
        mlite.exe test.bin BD > test.txt
 
 
# Used by Altera FPGAs for ram image
# Used by Altera FPGAs for ram image
tohex:
tohex: bintohex.exe
        bintohex.exe test2.exe
        bintohex.exe test.bin
        $(CP) code*.hex $(VHDL_DIR)
        $(CP) code*.hex $(VHDL_DIR)
 
 
# Used by Xilinx FPGAs for ram image
# Used by Xilinx FPGAs for ram image
toimage:
toimage:
        ram_image.exe ../vhdl/ram_xilinx.vhd ../vhdl/code.txt ../vhdl/ram_image.vhd
        ram_image.exe ../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.