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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [tools/] [makefile] - Blame information for rev 126

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

Line No. Rev Author Line
1 126 rhoads
# NOTE:  CC is for the x86 compiler to compile the PC based tools.
2
# Gcc is for the MIPS test code.
3
# If you get an error using GNU make.exe try a different make utility.
4
# The MIPS gcc compiler libraries cause problems with GNU make.
5
 
6 66 rhoads
CC = cl /O1
7
#CC = gcc_x86 -O
8 2 rhoads
 
9 47 rhoads
all: convert.exe mlite.exe tracehex.exe bintohex.exe
10 66 rhoads
        @echo make targets = count, opcodes, pi, test, run, tohex
11 47 rhoads
 
12 2 rhoads
convert.exe: convert.c
13 47 rhoads
        @$(CC) -o convert.exe convert.c
14 2 rhoads
 
15 41 rhoads
mlite.exe: mlite.c
16 47 rhoads
        @$(CC) -o mlite.exe mlite.c
17 2 rhoads
 
18 7 rhoads
tracehex.exe: tracehex.c
19 47 rhoads
        @$(CC) -o tracehex.exe tracehex.c
20 2 rhoads
 
21 47 rhoads
bintohex.exe: bintohex.c
22
        @$(CC) -o bintohex.exe bintohex.c
23
 
24
tohex:
25 66 rhoads
        bintohex test2.exe
26 47 rhoads
        copy code*.hex ..\vhdl
27
 
28 32 rhoads
opcodes: all
29 22 rhoads
        as -o opcodes.o opcodes.asm
30 32 rhoads
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe opcodes.o
31 36 rhoads
        -@objdump --disassemble test.exe > test.lst
32 22 rhoads
        @convert
33 41 rhoads
        -@mlite test2.exe BD > test.txt
34 22 rhoads
        @copy code.txt ..\vhdl
35 7 rhoads
 
36 32 rhoads
test: all
37 36 rhoads
        as -o boot.o boot.asm
38 66 rhoads
        gcc -O -DMLITE -Dmain=main2 -Wall -c -s test.c
39 32 rhoads
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe boot.o test.o
40 36 rhoads
        -@objdump --disassemble test.exe > test.lst
41 22 rhoads
        @convert
42 41 rhoads
        -@mlite test2.exe BD > test.txt
43 22 rhoads
        @copy code.txt ..\vhdl
44
 
45 36 rhoads
count: all
46
        as -o boot.o boot.asm
47 66 rhoads
        gcc -O -DMLITE -Dmain=main2 -Wall -c -s count.c
48 36 rhoads
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe boot.o count.o
49 66 rhoads
        -objdump --disassemble test.exe > test.lst
50
        convert
51
        -mlite test2.exe BD > test.txt
52
        copy code.txt ..\vhdl
53 32 rhoads
 
54
pi: all
55 36 rhoads
        as -o boot.o boot.asm
56 66 rhoads
        gcc -O -DMLITE -Dmain=main2 -Wall -c -s pi.c
57 32 rhoads
        ld -Ttext 0 -eentry -Map test.map -s -N -o test.exe boot.o pi.o
58
        @objdump --disassemble test.exe > test.lst
59
        @convert
60 41 rhoads
        -@mlite test2.exe BD > test.txt
61 32 rhoads
        @copy code.txt ..\vhdl
62
 
63 41 rhoads
run: mlite.exe
64
        @mlite test2.exe B
65 22 rhoads
 
66
 

powered by: WebSVN 2.1.0

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