将makefile中的gcc字样用$(CC)环境变量代替

This commit is contained in:
longjin
2022-10-16 11:08:32 +08:00
parent af37e98979
commit fbe1e23e97
45 changed files with 91 additions and 90 deletions

View File

@ -6,8 +6,8 @@ all: apu_boot.o smp.o
apu_boot.o: apu_boot.S
gcc -E apu_boot.S > _apu_boot.s # 预处理
$(CC) -E apu_boot.S > _apu_boot.s # 预处理
as $(ASFLAGS) -o apu_boot.o _apu_boot.s
smp.o: smp.c
gcc $(CFLAGS) -c smp.c -o smp.o
$(CC) $(CFLAGS) -c smp.c -o smp.o