Thread: how to create a make file?

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    22

    how to create a make file?

    Hi, Is there any tools to create makemake file?
    I hv set of source files (say mcast.c main.c) and a header file in my program. i need to create a make file for this.
    I went through the google to find how to and im still in that phase.
    but at the middle of it i found a tool called automake.
    What make the difference using a tool to create a make file or writing its by my own.

    As a beginer which one would you recommend me?
    thanks.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    As already replied in the other thread:

    This is a new thread, so if some moderator can help by splitting this and the previous post off, it would help.

    Some compilers are able to produce a dependency listing, which is part of generating a makefile. There are tools that go well beyond that - most IDE's have a way that produce a makefile, but it's often just as easy to write the bit that sets up the overall project yourself (because even in the IDE, you have to select which source files get compiled, and place them into some box or such).

    It is not hard if you understand a bit of makefile structure. If you don't, then you probably should study a tutorial of makefile structure.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can any1 plz make this assignment
    By jean in forum C Programming
    Replies: 17
    Last Post: 05-13-2009, 09:19 PM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  3. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  4. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM