Use makefileThis tip submitted by cjediknight on 2005-08-05 05:19:01. It has been viewed 54515 times.
Rating of 5.6 with 178 votes
When writting a large program, always use a multi-source file compilation.
do this by creating a make file.
if you have main.c as main program, file1.c and file2.c as sub program.
link it to main by creating makefile like this.
main: main.o file1.o file2.o
then at command run run make
Help your fellow programmers! Add a tip!