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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [makefile] - Blame information for rev 227

Go to most recent revision | 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
 
3 201 rhoads
# Customize for Linux
4
#CC_X86 = gcc -Wall -O -g
5
#CP = cp
6
#RM = rm -rf
7
#BIN_MIPS = ../../mips/sde/bin
8
#VHDL_DIR = ../vhdl
9
#GCC_MIPS  = $(BIN_MIPS)/gcc $(CFLAGS)
10
#AS_MIPS   = $(BIN_MIPS)/as
11
#LD_MIPS   = $(BIN_MIPS)/ld
12
#DUMP_MIPS = $(BIN_MIPS)/objdump
13
 
14
# Customize for Windows
15
CC_X86 = cl /O1
16
CP = copy
17
RM = del
18
BIN_MIPS = ..\gccmips_elf
19
VHDL_DIR = ..\vhdl
20
GCC_MIPS  = $(BIN_MIPS)\gcc $(CFLAGS)
21
AS_MIPS   = $(BIN_MIPS)\as
22
LD_MIPS   = $(BIN_MIPS)\ld
23
DUMP_MIPS = $(BIN_MIPS)\objdump
24
 
25 198 rhoads
# Use software multiplier (don't use mult.vhd)
26
CFLAGS_SW_MULT = -mno-mul -DUSE_SW_MULT
27
 
28
# Use 16 fewer registers (make reg_bank.vhd smaller)
29
CFLAGS_FEW_REGS = -ffixed-t1 -ffixed-t2 -ffixed-t3 -ffixed-t4 -ffixed-t5 -ffixed-t6 -ffixed-t7 -ffixed-t8 -ffixed-t9 -ffixed-s2 -ffixed-s3 -ffixed-s4 -ffixed-s5 -ffixed-s6 -ffixed-s7 -ffixed-s8
30
 
31 138 rhoads
CFLAGS = -O2 -Wall -c -s -I..\tools -msoft-float
32
 
33
rtos:
34
        $(AS_MIPS) -o boot.o ..\tools\boot.asm
35
        $(GCC_MIPS) rtos.c
36
        $(GCC_MIPS) libc.c
37
        $(GCC_MIPS) uart.c
38
        $(GCC_MIPS) rtos_test.c
39
        $(GCC_MIPS) math.c
40 191 rhoads
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
41 222 rhoads
        boot.o rtos.o libc.o uart.o rtos_test.o math.o
42 153 rhoads
        ..\tools\convert_bin
43
        @sort test2.map
44 191 rhoads
        @$(DUMP_MIPS) --disassemble test.axf > test.lst
45
        cp test.bin ..\tools
46 138 rhoads
 
47 222 rhoads
rtosfull:
48
        $(AS_MIPS) -o boot.o ..\tools\boot.asm
49
        $(GCC_MIPS) rtos.c
50
        $(GCC_MIPS) libc.c
51
        $(GCC_MIPS) uart.c
52
        $(GCC_MIPS) rtos_test.c -DINCLUDE_HTML -DINCLUDE_CONSOLE
53
        $(GCC_MIPS) math.c
54
        $(GCC_MIPS) tcpip.c
55
        $(GCC_MIPS) http.c
56
        $(GCC_MIPS) netutil.c
57
        $(GCC_MIPS) filesys.c
58
        $(GCC_MIPS) -I. ..\app\html.c -DMainThread=HtmlThread
59
        $(GCC_MIPS) -I. ..\app\image.c
60
        $(GCC_MIPS) -I. ..\app\tictac.c
61
        $(GCC_MIPS) -I. ..\app\tic3d.c
62
        $(GCC_MIPS) -I. ..\app\connect4.c
63
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
64
        boot.o rtos.o libc.o uart.o rtos_test.o math.o tcpip.o \
65
        http.o netutil.o filesys.o html.o image.o tictac.o tic3d.o connect4.o
66
        ..\tools\convert_bin
67
        @sort test2.map
68
        @$(DUMP_MIPS) --disassemble test.axf > test.lst
69
        cp test.bin ..\tools
70
 
71 145 rhoads
clean:
72 227 rhoads
        -$(RM) *.o *.obj *.axf *.map *.lst *.hex *.txt *.bin
73 138 rhoads
 
74
# Run a MIPS opcode simulator
75
run:
76
        @..\tools\mlite test.bin
77
 
78
disassemble:
79
        -@..\tools\mlite test.bin BD > test.txt
80
 
81
 

powered by: WebSVN 2.1.0

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