Hey so I a new to C but a intermediate level programmer in general. I'm looking in to make files and having issues figuring out exactly what they are for, and how to use them. So for example I am currently compiling each of my files in my project individually by typing:
gcc -o newoutfilename1.out oldcfilename1.c
gcc -o newoutfilename2.out oldcfilename2.c
Now what if I just wanted to run a make file to compile them all at once. I don't want to put them all into one file at the end seeing how they are not linked. Also going more advance. Can a makefile be used for testing. Like after I compile to newoutfilename1.out
I want to run:
./newoutfilename1.out arg1 arg2 arg3 > intothisfile.data
Generally making my life easier while coding and testing if the code compiles and out puts the correct data.