目标文件:源码经过编译还没有链接那些中间文件.linux .o文件
gcc $(CFLAGS) -c xxx.c -o xx.o
include Makefile.config
SRC := $(wildcard *.c wildcard ./audio_module/*.c)
SRC_OBJ = $(patsubst %.c,%.o,$(SRC))
all:$(SRC_OBJ)
$(info contents $(SRC))
$(info objfiles $(SRC_OBJ))
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
.PHONY:clean
clean:
$(RM) $(SRC_OBJ)