build.mk

来自「realview22.rar」· MK 代码 · 共 94 行

MK
94
字号
CC=armcc
AS=armasm
LD=armlink
AR=armar
FE=fromelf


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

rebuild: clean all

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


CFLAGS = -c -g -O1
AFLAGS = -g

COMMON=t_rad.o t_04096_8.o t_04096_4.o t000002.o t000004.o t000008.o t000016.o t000032.o t000064.o t000128.o t000256.o t000512.o t001024.o t002048.o t004096.o testfft.o

fft_v5TE.axf: $(COMMON) fft_main_v5TE.o
	$(LD) $(COMMON) fft_main_v5TE.o \
              -o fft_v5TE.axf --info totals

fft_v4.axf: $(COMMON) fft_main_v4.o
	$(LD) $(COMMON) fft_main_v4.o \
              -o fft_v4.axf --info totals


fft_main_v4.o: fft_asm/fft_main.s
	$(AS) $(AFLAGS) --cpu arm7tdmi -o fft_main_v4.o fft_asm/fft_main.s

fft_main_v5TE.o: fft_asm/fft_main.s
	$(AS) $(AFLAGS) --cpu arm9e -o fft_main_v5TE.o fft_asm/fft_main.s


t_rad.o: tables/t_rad.c
	$(CC) $(CFLAGS) tables/t_rad.c -o t_rad.o

t_04096_8.o: tables/t_04096_8.c
	$(CC) $(CFLAGS) tables/t_04096_8.c -o t_04096_8.o

t_04096_4.o: tables/t_04096_4.c
	$(CC) $(CFLAGS) tables/t_04096_4.c -o t_04096_4.o

t000002.o: test/t000002.c
	$(CC) $(CFLAGS) test/t000002.c -o t000002.o

t000004.o: test/t000004.c
	$(CC) $(CFLAGS) test/t000004.c -o t000004.o

t000008.o: test/t000008.c
	$(CC) $(CFLAGS) test/t000008.c -o t000008.o

t000016.o: test/t000016.c
	$(CC) $(CFLAGS) test/t000016.c -o t000016.o

t000032.o: test/t000032.c
	$(CC) $(CFLAGS) test/t000032.c -o t000032.o

t000064.o: test/t000064.c
	$(CC) $(CFLAGS) test/t000064.c -o t000064.o

t000128.o: test/t000128.c
	$(CC) $(CFLAGS) test/t000128.c -o t000128.o

t000256.o: test/t000256.c
	$(CC) $(CFLAGS) test/t000256.c -o t000256.o

t000512.o: test/t000512.c
	$(CC) $(CFLAGS) test/t000512.c -o t000512.o

t001024.o: test/t001024.c
	$(CC) $(CFLAGS) test/t001024.c -o t001024.o

t002048.o: test/t002048.c
	$(CC) $(CFLAGS) test/t002048.c -o t002048.o

t004096.o: test/t004096.c
	$(CC) $(CFLAGS) test/t004096.c -o t004096.o

testfft.o: test/testfft.c
	$(CC) $(CFLAGS) test/testfft.c -o testfft.o

⌨️ 快捷键说明

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