Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Understanding makefile and dependency

Understanding makefile and dependency

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14161770
    wrote on last edited by
    #1

    Hi, We have lot of modules to handle with for big applications. So, how will we understand the dependencies?I mean if to compile program using make file, how can I know which all modules to compile with?

    D CPalliniC L 3 Replies Last reply
    0
    • M Member_14161770

      Hi, We have lot of modules to handle with for big applications. So, how will we understand the dependencies?I mean if to compile program using make file, how can I know which all modules to compile with?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Does your IDE support compiling and linking?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      1 Reply Last reply
      0
      • M Member_14161770

        Hi, We have lot of modules to handle with for big applications. So, how will we understand the dependencies?I mean if to compile program using make file, how can I know which all modules to compile with?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        You are (or, at least, should be) the author of the makefile, hence it is up to you to specify the correct dependencies in it.

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • M Member_14161770

          Hi, We have lot of modules to handle with for big applications. So, how will we understand the dependencies?I mean if to compile program using make file, how can I know which all modules to compile with?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          The overriding concept of makefiles is the ability to specify the dependencies in a simple tree. But since you are the one who knows which module(s) depend on which, you are the person who will need to create the tree.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups