将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,16 +5,16 @@ CFLAGS += -I .
all: ktest.o bitree.o kfifo.o mutex.o idr.o
ktest.o: ktest.c
gcc $(CFLAGS) -c ktest.c -o ktest.o
$(CC) $(CFLAGS) -c ktest.c -o ktest.o
bitree.o: test-bitree.c
gcc $(CFLAGS) -c test-bitree.c -o test-bitree.o
$(CC) $(CFLAGS) -c test-bitree.c -o test-bitree.o
kfifo.o: test-kfifo.c
gcc $(CFLAGS) -c test-kfifo.c -o test-kfifo.o
$(CC) $(CFLAGS) -c test-kfifo.c -o test-kfifo.o
mutex.o: test-mutex.c
gcc $(CFLAGS) -c test-mutex.c -o test-mutex.o
$(CC) $(CFLAGS) -c test-mutex.c -o test-mutex.o
idr.o: test-idr.c
gcc $(CFLAGS) -c test-idr.c -o test-idr.o
$(CC) $(CFLAGS) -c test-idr.c -o test-idr.o