⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 一个航天航空用的Sparc处理器(配美国欧洲宇航局用的R_tems嵌入式操作系统)的VHDL源代码
💻
字号:

CC=sparc-rtems-gcc
CFLAGS=-O2 -g -mv8 --pipe
LDFLAGS=-N -nostdlib -nostdinclude -mv8 -T ./linkleon -e _hardreset locore1.o

all: tests
tests: locore1.o leon_test simfiles

simfiles: ram.dat rom.dat rome.dat rom8.dat rom8e.dat
ram.dat: leon_test
	sparc-rtems-objdump -s leon_test > ram.dat
	sparc-rtems-objdump -d leon_test > ram.s
	sparc-rtems-size leon_test

rom8e.dat: boot8e
	sparc-rtems-objdump -s boot8e > rom8e.dat
	sparc-rtems-objdump -d boot8e > rome.s
	sparc-rtems-size boot

rom8.dat: boot8
	sparc-rtems-objdump -s boot8 > rom8.dat
	sparc-rtems-objdump -d boot8 > rom.s
	sparc-rtems-size boot

rome.dat: boote
	sparc-rtems-objdump -s boote > rome.dat
	sparc-rtems-objdump -d boote > rome.s
	sparc-rtems-size boot

rom.dat: boot
	sparc-rtems-objdump -s boot > rom.dat
	sparc-rtems-objdump -d boot > rom.s
	sparc-rtems-size boot

boot8e: boot8e.o
	sparc-rtems-gcc -N -nostdlib -nostdinclude -T linkboot \
	-e _hardreset boot8e.o -o boot8e

boot8: boot8.o
	sparc-rtems-gcc -N -nostdlib -nostdinclude -T linkboot \
	-e _hardreset boot8.o -o boot8

boote: boote.o
	sparc-rtems-gcc -N -nostdlib -nostdinclude -T linkboot \
	-e _hardreset boote.o -o boote

boot: boot.o
	sparc-rtems-gcc -N -nostdlib -nostdinclude -T linkboot \
	-e _hardreset boot.o -o boot

leon_test : regtest.o irqctrl.o uart.o leon_test.o timers.o cache.o misc.o \
	memtest.o dma.o ioport.o libgcc.a

clean:
	-rm boot leon_test *.o *.s boot8 boot8e boote 

# DO NOT DELETE

uart.o: config.h leon.h test.h
leon_test.o: config.h leon.h test.h locore1.o
cache_test.o: config.h leon.h test.h
timer_test.o: config.h leon.h test.h
regtest.o: config.h leon.h test.h
dma.o: config.h leon.h test.h
misc.o: config.h leon.h
memtest.o: config.h leon.h test.h
ioport.o: config.h leon.h test.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -