URL
https://opencores.org/ocsvn/mlite/mlite/trunk
Subversion Repositories mlite
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 152 to Rev 153
- ↔ Reverse comparison
Rev 152 → Rev 153
/trunk/kernel/makefile
1,21 → 1,10
# 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 GCC_MIPS is for compiling code on the target. |
# Convert_bin changes test.exe into code.txt which is used by the VHDL. |
|
#CC_X86 = gcc_x86 -O |
CC_X86 = cl /O1 |
|
#CFLAGS = -DMLITE -Dmain=main2 -Wall -c -s |
#CFLAGS = -O2 -DMLITE -Dmain=main2 -Wall -c -s |
CFLAGS = -O2 -Wall -c -s -I..\tools -msoft-float |
GCC_MIPS = gcc $(CFLAGS) |
AS_MIPS = as |
LD_MIPS = ld |
DUMP_MIPS = objdump |
#GCC_MIPS = gcc_mips $(CFLAGS) |
#AS_MIPS = as_mips |
#LD_MIPS = ld_mips |
|
rtos: |
$(AS_MIPS) -o boot.o ..\tools\boot.asm |
26,12 → 15,12
$(GCC_MIPS) math.c |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \ |
boot.o rtos.o libc.o uart.o rtos_test.o math.o |
..\tools\convert_bin |
@sort <test.map >test2.map |
@$(DUMP_MIPS) --disassemble test.exe > test.lst |
..\tools\convert_bin |
-@sort <test.map >test2.map |
|
clean: |
-del *.o *.obj *.exe *.map *.lst *.hex *.txt *.bin |
-del *.o *.obj *.exe *.map *.lst *.hex *.txt |
|
# Run a MIPS opcode simulator |
run: |