Images in this article are not well-scaled.

Disclaimer: This passage contains notes and insights gathered from the internet. The content is used for educational purposes and attributed to the original authors. I do not claim any ownership over the material.

# Define variables
src=$(wildcard ./*.c)
objs=$(patsubst %.c, %.o, $(src))
target=app

$(target): $(objs)
$(CC) $(objs) -o $(target)
%.o: %.c
$(CC) -c $< -o $@

.PHONY:clean
clean:
rm -f $(objs) $(target)

image.pngimage.png
image.png
image.png

avatar
Jialuo Hu
I contribute to my hobby.
Categories
Info
Article :
2
Run time :
UV :
Last Push :