What are Makefiles and How Do You Write Them?

Asked By 10 points N/A Posted on -

I need some help in getting my head around the makefile concept. I know they are supposed to make operations at the command prompt much easier. I have used some ready-made ones before but I want someone to explain further, in few words, what makefiles are? How can I write makefiles? Apart from using makefiles at command prompts, what other areas can I apply makefiles to make life a little bit easy for me in the computer world?

Answered By 0 points N/A #190529

What are Makefiles and How Do You Write Them?



 Composing your source code files can be exhausting, especially when you want to include several and have to type the command every time you want to do it.

  Makefiles are special format files in special format that, along with the make utility will help you to automatically construct and control your projects.

  To learn how to do this, you will need these files:

  1. main.cpp
  2. hello.cpp
  3. factorial.cpp
  4. functions.h

Go look at this TUTORIAL, here is everything you need to know, explained step by step.

Regards, Mathew Tand

Login/Register to Answer

Related Questions