将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

@ -4,10 +4,10 @@ all: timer.o sleep.o
CFLAGS += -I .
timer.o: timer.c
gcc $(CFLAGS) -c timer.c -o timer.o
$(CC) $(CFLAGS) -c timer.c -o timer.o
sleep.o: sleep.c
gcc $(CFLAGS) -c sleep.c -o sleep.o
$(CC) $(CFLAGS) -c sleep.c -o sleep.o
clean:
echo "Done."