Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what is makefile in linux & how to use it?

Status
Not open for further replies.

smartshashi

Member level 4
Joined
Aug 11, 2004
Messages
68
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
513
what is makefile

i m learning c under linux & running programs in gcc compiler. but what is makefile & what is use of it while running c programs in linux.
 

what is makefile.in

A makefile is a script for appropriate compilation of different type of sources to the appropriate object code.
To use a makefile just type make or gmake in a console window opened in the same dir as the makefile
 

what is makefile?

I highly recommend reading chapter 5 (Building Software with GNU make) from the book: GNU/Linux Application Programming by M. Tim Jones.
 

learning a makefile in linux

make file is used for compiling no of files by using single command MAKE.

It will be very useful in big projects, if u changed one file the time sence will be different for that particular file for that we want to compile all the files, by using this we will compile all by using single command.
 

how to execute makefile.in

Makefiles are used to define the procedure to compile and link your program. If you have only one or two files in your project you can compile and link them without using the makefile but as number of files increases it's very difficult to compile and link them one by one. Also you will have to remember the dependencies between these files.

Makefiles are used to automate these tasks so just define your rules once and instead of compiling and linking individual files you just need to execute the makefile.

Checkout this simple tuturial to get started.
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top