Author Topic: As it is now, or Makefile.am Makefile.in been?  (Read 6671 times)

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
As it is now, or Makefile.am Makefile.in been?
« on: August 10, 2016, 03:33:25 pm »
Good all!
I am pleased once again to display.
I often see projects that have different files in its composition, not similar to any project or windose kodeblok-y.
Many different files were found, and as such Makefile.am, and Makefile.in, and various others.
How to compile the project? Which files are more important to control?

Previously, it was probably more than six months ago, I saw a Makefile.am, and Makefile.in and then I could not, absolutely nothing happened.
« Last Edit: August 10, 2016, 03:35:58 pm by Дмитро »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: As it is now, or Makefile.am Makefile.in been?
« Reply #1 on: August 10, 2016, 07:02:17 pm »
http://stackoverflow.com/questions/2531827/what-are-makefile-am-and-makefile-in

if there is no codeblocks project file it is 99% not worth to use codeblocks to compile the project. If you want to port the project it would be better to create a new project and "clone" the makefile behaviour.

Of corse you can also use a "makefile" project by creating a new empty project and set
Project->Properties->This is a custom makefile

But i would recommend to use autotools for makefiles...

greetings

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: As it is now, or Makefile.am Makefile.in been?
« Reply #2 on: August 10, 2016, 08:04:45 pm »
Previously, it was probably more than six months ago, I saw a Makefile.am, and Makefile.in and then I could not, absolutely nothing happened.
Well you should probably start to read yourself into autotools. Makefile.am and Makefile.in are the basic files that are used to produce the Makefile you'll need to compile the project at all. For that, a lot checks will be done and a configuration will be written that matches your platform/version.

These files are also the template if you want to create a C::B project. They contain the compiler/linker options, references and stuff that need to be setup in C::B, too.

BTW: I personally think autfoo sucks and see a clear reason to move such a project to C::B therefore, but that is only my opinion...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
Re: As it is now, or Makefile.am Makefile.in been?
« Reply #3 on: August 11, 2016, 02:03:52 pm »
Thank you!
Nice to answers, I thank you.
I revere and think ...


Yes, indeed it is. That's what I'm writing.


An important need there. Just wondering.

But, • other it would be good.
Such Projects containing makefile I see that almost 50% of cases.

So I try to put Autotools.

Can you advise exactly what to download, where better to download, and what commands to determine if something unusual?
Yes, I have a car worth windose.


« Last Edit: August 11, 2016, 06:44:40 pm by Дмитро »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: As it is now, or Makefile.am Makefile.in been?
« Reply #4 on: August 12, 2016, 08:20:10 pm »
Can you advise exactly what to download, where better to download, and what commands to determine if something unusual?
Yes, I have a car worth windose.
On Windows it will be difficult because autotool usually is for the Unix/Linux environment. What can work is if you use either MSYS/MSYS2 and install all the required package or Cygwin.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
Re: As it is now, or Makefile.am Makefile.in been?
« Reply #5 on: August 12, 2016, 09:46:30 pm »

I see. Thanks. Clear!

Edit: Removed non-english content. Please respect our forum rules. Thank you.
« Last Edit: August 13, 2016, 06:02:48 am by MortenMacFly »