Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I am trying to write one make file(main.mk) where it will execute multiple COMPONENTS: and will generate the .LIB and bin My COMPONENETS right now is one but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    10

    Multiple Projects: One Makefile?


    Hi All,

    I am trying to write one make file(main.mk) where it will execute multiple COMPONENTS: and will generate the .LIB and bin

    My COMPONENETS right now is one but need to re-write to take multiple like soure1.mak,source2.mak ....etc

    Currently i am able to generate for One componenet only, how do i make it automake to generate different LIBS and BINS for different componenets at one shot when i execute make

    Attached the existing one with me as ,please suggest me the changes need to be done

    Thanks In Advance
    Brahma
    Attached Files Attached Files

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    625
    The default name for make is "Makefile" and a default fail-over to "makefile". The COMPONENTS should be in their own sub-directories and the make would cd and make in each sub-directories.

Posting Permissions

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