[dywang@dyw219 make1]$ grep ^# main.c #include <stdlib.h> #include "a.h" [dywang@dyw219 make1]$ grep ^# 2.c #include <stdio.h> #include "a.h" #include "b.h" [dywang@dyw219 make1]$ grep ^# 3.c #include "b.h" #include "c.h"
[dywang@dyw219 make1]$ vim 2.c [dywang@dyw219 make1]$ grep 2222 2.c printf("2222\n");
[dywang@dyw219 make1]$ gcc -c 2.c [dywang@dyw219 make1]$ gcc -o main main.o 2.o 3.o
[dywang@dyw219 make1]$ ./main 2222