Thread: Quick question on makefile

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    175

    Quick question on makefile

    I am adding a new file to a existing project.
    And project is built using makefile. While adding new file to makefile, How do I decide a particular .obj file depends on these .c files and .h files?

    Thanks

  2. #2
    KingoftheWorld
    Guest
    Your question sounds funny. You are the one handle to implement your project and you know well your project architecture. You know how modules in your project interface each other and the dependency among module files so that they can incorporate in make-file script. Beside you, how do other people can know your project construct unless you need to post all code in your project here. Best thing is to ask your project leader.

    KingoftheWorld
    ==================
    Think globally, Act locally.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>How do I decide a particular .obj file depends on these .c files and .h files?
    Presumably, as the coder, you know what files are dependant on each other? This link should help you organise your makefile, but put it here it you have trouble.

    http://www.google.com/search?sourcei...efile+tutorial
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. quick question (adding characters)
    By Cactus in forum C Programming
    Replies: 2
    Last Post: 09-24-2005, 03:54 PM
  2. very quick question.
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 07-24-2002, 03:48 AM
  3. quick question
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 07-22-2002, 04:44 AM
  4. Quick Question Regarding Pointers
    By charash in forum C++ Programming
    Replies: 4
    Last Post: 05-04-2002, 11:04 AM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 05:46 PM