Author Topic: Custom Makefile  (Read 4498 times)

Offline Flake

  • Single posting newcomer
  • *
  • Posts: 7
Custom Makefile
« on: January 12, 2009, 03:04:21 pm »
Quote
a) In "Compiler Settings", under the tab "Other", there's a setting called "Build Method". Choose "Work with makefiles".

Could anyone show me where do we have a setting called "Build Method"? "Compiler Settings" ->"Other" -> here I have plain text area, nothing to choose.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Custom Makefile
« Reply #1 on: January 12, 2009, 05:43:50 pm »
I just updated the FAQ with updated directions.
Please see if it makes sense now.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

meeshoo

  • Guest
Re: Custom Makefile
« Reply #2 on: January 14, 2009, 03:00:07 am »
I am having a problem using a custom makefile too. I am trying to build a project that has a makefile included that in its turn includes other make files (it has statements like"include Makefile.other" inside). I must also say that the cb project files are in a separate folder from the source files, but I added the full path to the custom make file and it started processing it. However, on the first statement that includes other makefile, it says it cannot find that other makefile. Is there anyway to setup folders to search for other makefiles? I added the path to the folder containing the other make file into the compiler search directory tab, but no results. How can I build when I have multiple custom makefiles that include one another?

Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Custom Makefile
« Reply #3 on: January 14, 2009, 03:29:27 am »
I am having a problem using a custom makefile too. I am trying to build a project that has a makefile included that in its turn includes other make files (it has statements like"include Makefile.other" inside). I must also say that the cb project files are in a separate folder from the source files, but I added the full path to the custom make file and it started processing it. However, on the first statement that includes other makefile, it says it cannot find that other makefile. Is there anyway to setup folders to search for other makefiles? I added the path to the folder containing the other make file into the compiler search directory tab, but no results. How can I build when I have multiple custom makefiles that include one another?

Thanks

Move the project file to the same folder as top makefile is the easiest way.
The other way is to create an makefile, in same folder as CBProject file, that calls former top makefile.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org