nsose.blogg.se

Where to put makefile for c program
Where to put makefile for c program










However, the name Makefile is much more recognizable.

where to put makefile for c program

Makefile uses the make utility, and if we're to be completely accurate, Makefile is just a file that houses the code that the make utility uses. And because all good things in the software world come from some engineer being too lazy to type in a few extra commands, Makefile was born. This is a very tedious and time-consuming process. So if we make a change in opengl.source for example, we need to recompile both draw.source and main_program.source because we want our project to be up-to-date on all ends.

where to put makefile for c program where to put makefile for c program

Math.source -> uses the libraries `floating_point_calc.source` and `integer_calc.source`ĭraw.source -> uses the library `opengl.source` When you want to run a project that has multiple sources, resources, etc., you need to make sure that all of the code is recompiled before the main program is compiled or run.įor example, imagine our software looks something like this: main_program.source -> uses the libraries `math.source` and `draw.source`












Where to put makefile for c program