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

Subversion Repositories plasma

[/] [plasma/] [tags/] [V3_0/] [kernel/] [makefile] - Blame information for rev 352

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 138 rhoads
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.
2
# The CC_X86 is for compiling tools on your PC.
3
# The GCC_MIPS is for compiling code on the target.
4
# Convert_bin changes test.exe into code.txt which is used by the VHDL.
5
 
6
#CC_X86 = gcc_x86 -O
7
CC_X86 = cl /O1
8
 
9
#CFLAGS = -DMLITE -Dmain=main2 -Wall -c -s
10
#CFLAGS = -O2 -DMLITE -Dmain=main2 -Wall -c -s
11
CFLAGS = -O2 -Wall -c -s -I..\tools -msoft-float
12
GCC_MIPS = gcc $(CFLAGS)
13
AS_MIPS = as
14
LD_MIPS = ld
15
DUMP_MIPS = objdump
16
#GCC_MIPS = gcc_mips $(CFLAGS)
17
#AS_MIPS = as_mips
18
#LD_MIPS = ld_mips
19
 
20
clean:
21
        -del *.o *.obj *.exe *.map *.lst *.hex *.txt
22
 
23
rtos:
24
        $(AS_MIPS) -o boot.o ..\tools\boot.asm
25
        $(GCC_MIPS) rtos.c
26
        $(GCC_MIPS) libc.c
27
        $(GCC_MIPS) uart.c
28
        $(GCC_MIPS) rtos_test.c
29
        $(GCC_MIPS) math.c
30
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \
31
                boot.o rtos.o libc.o uart.o rtos_test.o math.o
32
        @sort test2.map
33
        @$(DUMP_MIPS) --disassemble test.exe > test.lst
34
        ..\tools\convert_bin
35
 
36
 
37
# Run a MIPS opcode simulator
38
run:
39
        @..\tools\mlite test.bin
40
 
41
disassemble:
42
        -@..\tools\mlite test.bin BD > test.txt
43
 
44
 

powered by: WebSVN 2.1.0

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