What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
Answer Posted / sarmistha pattanaik
When we write C program in modular pattern, then generally
it consists of 3 parts, .h file which will contain all the
header info, main.c will contain the main function and one
more .c file which will contain all the function
definitions. In order to compile the two.c file it will
create object file with .o extention. It's a multi step
process. In order to avoid the steps, we can write all the
compiling statements in one file which is the makefile.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do I create a directory? How do I remove a directory (and its contents)?
What are the advantages of external class?
What is the return type of sizeof?
What is wrong in this statement? scanf(“%d”,whatnumber);
Why is c called a structured programming language?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Is null always equal to 0(zero)?
What is structure of c program?
What is the purpose of void in c?
What is file in c language?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What are the different properties of variable number of arguments?
How many types of errors are there in c language? Explain
What are the modifiers available in c programming language?