Author Topic: h files in the auto genrated makefile  (Read 3632 times)

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
h files in the auto genrated makefile
« on: March 05, 2012, 02:25:25 PM »
When I use the auto generated makefile capability for GCC,
the h files are not included, thus, when changing only an h file and hitting Build, nothing is compiled.
Is this on purpose? is it a bug?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: h files in the auto genrated makefile
« Reply #1 on: March 05, 2012, 02:44:31 PM »
Are these header files included in your project?

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
Re: h files in the auto genrated makefile
« Reply #2 on: March 05, 2012, 02:51:06 PM »
of course...

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: h files in the auto genrated makefile
« Reply #3 on: March 05, 2012, 02:51:51 PM »
of course...

Sorry, have to ask these things  ;)

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: h files in the auto genrated makefile
« Reply #4 on: March 06, 2012, 03:41:35 PM »
Sorry for the slow response.  I had to look into this.

It turns out we don't do this because it would be very hard for us to consistently get it right.  There are a couple of things you could do:
  • Use makedep to generate the dependencies, and then include that in the user modifiable piece of the generated makefile.
  • For a small project, you may just be able to tweak the output to add the headers - and then switch the type off of auto-generated makefile.

Of course you could use our build system, which will handle the dependencies internally, but I imagine you tried the makefile because this was not a good option for you to start with.
« Last Edit: March 06, 2012, 04:53:57 PM by Dan »

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
Re: h files in the auto genrated makefile
« Reply #5 on: March 07, 2012, 10:51:20 AM »
Actually after reconsidering, the internal build is good enough for me,
so for me it is a valid solution

Thanks for your time...