Find the answer to your Linux question:
Results 1 to 2 of 2
hello all, I am creating one makefile for my application. For this i create one folder test and put all my C programs and header files intothat folder . in ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    14

    Exclamation makefile doubt!

    hello all,

    I am creating one makefile for my application. For this i create one folder test and put all my C programs and header files intothat folder . in make file i include it. It run succcessfull.

    Now, I want to put c files(.c files) into src folder, header files(.h files) into include folder and object files into obj folder and resulting binary into bin folder. For this, what can I do. how can i write this make file to call all c and header files from different folder (src,include).

    pls, give your suggestions and if possible example makefile description.

    thank you.

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    I recommend you use autoconf and automake. They'll make your life a whole lot easier.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...