将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

@ -5,14 +5,14 @@ CFLAGS += -I .
all: entry.o irq.o softirq.o trap.o
entry.o: entry.S
gcc -E entry.S > _entry.s
$(CC) -E entry.S > _entry.s
as $(ASFLAGS) -o entry.o _entry.s
trap.o: trap.c
gcc $(CFLAGS) -c trap.c -o trap.o
$(CC) $(CFLAGS) -c trap.c -o trap.o
softirq.o: softirq.c
gcc $(CFLAGS) -c softirq.c -o softirq.o
$(CC) $(CFLAGS) -c softirq.c -o softirq.o
irq.o: irq.c
gcc $(CFLAGS) -c irq.c -o irq.o
$(CC) $(CFLAGS) -c irq.c -o irq.o