CodePudding user response:
Mafile scripts you have any question,Header file if in the same now, don't need to reflect in the Makefile, in the c file, include "XXX. H
"If you are integration environment, the different, otherwise inside the terminal shell: make -f makfile
All:
GCC -o test test. C test1. C test2. C...
If there are other paths of header files, plus - I... .
CodePudding user response:
My_result: fun_jj. O main_jj. O head_jj. HGCC fun_jj. O main_jj. C head_jj. H - o my_result
Fun_jj. O: fun_jj. C
GCC fun_jj. C - c
Main_jj. O: main_jj. C
GCC main_jj. C - c
The clear:
rm -f *.o
CodePudding user response:
My direct change name is ok, I just tried, can