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

📄 makefile

📁 JUPITER演示程序
💻
字号:
GCC = se3208-elf-gcc
AS  = se3208-elf-as
OBJDUMP = se3208-elf-objdump
OBJCOPY = se3208-elf-objcopy

CFLAGS = -g -O2
LDFLAGS = -Xlinker -T../Library/se3208.vct -Xlinker -relax

all : Uart_main
Uart_main : Uart_main.c crt0.o Jupiter.o IntVector.o IntServiceRoutine.o JupiterPeripheral.o InterruptSet.o Application.o
	${GCC} -o Uart_main.elf crt0.o Uart_main.c Jupiter.o IntVector.o IntServiceRoutine.o JupiterPeripheral.o InterruptSet.o \
	Application.o ${CFLGAS} ${LDFLAGS}
	${OBJDUMP} --disassemble-all Uart_main.elf > Uart_main.elf.dis
	${OBJCOPY} -O binary Uart_main.elf -I elf32-se3208 Uart_main.bin 

crt0.o:
	${AS} -o crt0.o ../Library/crt0.S

Jupiter.o:
	${GCC} -c -o Jupiter.o ../Library/Jupiter.c

IntVector.o:
	${GCC} -c -o IntVector.o ../Library/IntVector.c

IntServiceRoutine.o:
	${GCC} -c -o IntServiceRoutine.o ../Library/IntServiceRoutine.c

JupiterPeripheral.o:
	${GCC} -c -o JupiterPeripheral.o ../Library/JupiterPeripheral.c
	
InterruptSet.o:
	${GCC} -c -o InterruptSet.o ../Library/InterruptSet.c

Application.o:
	${GCC} -c -o Application.o ../Library/Application.c
clean :
	rm -rf *.dis *.elf *.bin *.o

⌨️ 快捷键说明

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