立即学习:https://edu.csdn.net/course/play/1733/26777?utm_source=blogtoedu
mypro:star.o hello.o
gcc star.o hello.o -o mypro
star.o:star.c
gcc -c star.c -o star.o
hello.o:hello.c
gcc -c hello.c -o hello.o
clean:
rm -f *.o
rm -f mypro
立即学习:https://edu.csdn.net/course/play/1733/26777?utm_source=blogtoedu
mypro:star.o hello.o
gcc star.o hello.o -o mypro
star.o:star.c
gcc -c star.c -o star.o
hello.o:hello.c
gcc -c hello.c -o hello.o
clean:
rm -f *.o
rm -f mypro