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

📄 build_3.mk

📁 ADS1.2 samples
💻 MK
字号:
CC=armcc
AS=armasm
LD=armlink
AR=armar
FE=fromelf


all: dhry.axf
# for Unix
#	@echo Build completed
# for Windows
	@if exist *.axf echo Build completed

rebuild: clean all

clean:
# for Unix
#	rm -f *.o *.axf
# for Windows
	if exist *.o del *.o
	if exist *.axf del *.axf


CFLAGS = -c -g -O2 -Otime -DMSC_CLOCK -D__CLK_TCK=1 -DSTANDALONE -I..\include
LFLAGS = -info totals -info unused -scatter ..\scatter\simple_scat.scf
AFLAGS = -g

dhry.axf: dhry_1.o dhry_2.o retarget.o clock.o serial.o uish.o ..\scatter\simple_scat.scf
	$(LD) $(LFLAGS) dhry_1.o dhry_2.o retarget.o clock.o serial.o uish.o -o dhry.axf

dhry_1.o: ..\Dhrystone\dhry_1.c
	$(CC) $(CFLAGS) ..\Dhrystone\dhry_1.c -o dhry_1.o

dhry_2.o: ..\Dhrystone\dhry_2.c
	$(CC) $(CFLAGS) ..\Dhrystone\dhry_2.c -o dhry_2.o

retarget.o: ..\source\retarget.c
	$(CC) $(CFLAGS) ..\source\retarget.c -o retarget.o

clock.o: ..\source\clock.c
	$(CC) $(CFLAGS) ..\source\clock.c -o clock.o

serial.o: ..\source\serial.c
	$(CC) $(CFLAGS) ..\source\serial.c -o serial.o

uish.o: ..\source\uish.s
	$(AS) $(AFLAGS) ..\source\uish.s

⌨️ 快捷键说明

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