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
Why calloc is better than malloc?
What is "Duff's Device"?
Why is c known as a mother language?
How can I prevent another program from modifying part of a file that I am modifying?
Who invented b language?
Explain what is page thrashing?
How can I send mail from within a c program?
application attempts to perform an operation?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What are multibyte characters?
What are global variables and explain how do you declare them?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is c language used for?
How can I implement sets or arrays of bits?
Describe the header file and its usage in c programming?