Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
it is my understanding, and correct me anyone if i'm wrong...please, the makefile gives instructions to the compiler ...i.e. paths,etc. the compiler itself would be a different animal. using the makefile as a source or reference if you will.
hope that helps. good luck.
makefile (or make) does not compile, but calls the compiler or the linker.
It works in the following way:
You specify in the makefile some dependencies between files (conditions) and the command to execute. Usually this is used to check what code files have been modified and then compile only the right ones. Make only executes the commands that you specify in the makefile (being it compile or link or remove or print or anything you like)
The make utility issues the shell commands to invoke the compiler, yes. It knows what commands to issue from the makefile, which, if it is called Makefile or makefile, will be found automatically when you invoke make. If the makefile has a different name you must specify it using the -f option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.