Author Topic: Makefile projects: What should I expect?  (Read 2460 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Makefile projects: What should I expect?
« on: December 08, 2015, 09:57:04 PM »
How much should I expect from Slick when creating a project from a Makefile?


I did Project->OpenOther->makefile.
I selected my makefile, and picked both checks (Scan for recursive and recursive makefile projects).


It doesn't find any of the recursive makefile and just a few source files.


The makefile I used is the Makefile for "GDB".


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: Makefile projects: What should I expect?
« Reply #1 on: December 09, 2015, 03:29:38 PM »
Did you use CMake to generate the makefiles?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Makefile projects: What should I expect?
« Reply #2 on: December 09, 2015, 05:26:24 PM »
No - "configure".
I simply downloaded the source for GDB and tried to build it.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: Makefile projects: What should I expect?
« Reply #3 on: December 09, 2015, 09:14:41 PM »
Getting all your files out of a makefile is a bit of a hail marry. Works ok at best. At worst, when it gets confused it gets nothing.

If you were using CMake, there's a much better solution for that since we've done work to add SlickEdit project support to it. It doesn't ship with the product yet though.

Phil Barila

  • Senior Community Member
  • Posts: 745
  • Hero Points: 61
Re: Makefile projects: What should I expect?
« Reply #4 on: December 09, 2015, 09:59:08 PM »
Ooh, that's cool!  We've got a idle-priority background investigation into replacing autotools with CMake.  The meta-make is a great idea.  Autotools is not a great implementation of it.  CMake seems to be better, though it is not all that accessible, as the documentation is sparse, so there is a lot of effort required to make use of it.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: Makefile projects: What should I expect?
« Reply #5 on: December 09, 2015, 10:06:19 PM »
Anyone who wants the cmake support for SlickEdit can request it from support.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Makefile projects: What should I expect?
« Reply #6 on: December 09, 2015, 10:15:02 PM »
@Phil: I can recommend CMake. We moved to it while ago. Requires a bit of work to get familiar with but it's very flexible. In fact you can do a lot more than you might think at the 1st place. For example we generate VS solutions/projects just for editing (many people are used to it, unfortunately..) and corr. external makefiles for non-trivial cross-development build.
@Clark: Wow - that's nice :)
HS2