Thread: makefile

  1. #1

    Question makefile

    what does a make file do?

    suppose i have the following files..


    how would i do a make file?

    thanx in advance.

  2. #2
    Banned Troll_King's Avatar
    Join Date
    Oct 2001

    Re: makefile

    Originally posted by trillnad
    what does a make file do?

    thanx in advance.
    It utilized the intermediate stage of creating an executable. The object file takes significance. You can compile each file at the same time to object files and link these files to machine dependant interfaces (producing a single executable), or (with makefiles) when you make changes to one single file in the group (comprising your project), you should only have to recompile that one changed file to its object file status, instead of all compiling and linking the whole project each time you make an isolated change. The makefile script manages this process.
    Last edited by Troll_King; 10-22-2002 at 05:50 AM.

  3. #3
    Registered User unixOZ's Avatar
    Join Date
    Feb 2002
    Makefiles come in really handy when you have to recompile a large program

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  3. unix makefile won't work but works in Dev C++
    By jk1998 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2007, 03:54 PM
  4. makefile blues....
    By WaterNut in forum C Programming
    Replies: 6
    Last Post: 05-30-2005, 08:22 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM