Mar. 23rd, 2005

maradydd: (Default)
At last: the end. No, an. It's never over.
At last it's something that, sometimes, you're happy
To walk away from.


But it's better to walk to something else, not just away.

English doesn't have enough pronouns.
maradydd: (Default)
Dear wise and all-knowing LJ Genie, brought to us by the also quite wise but maybe not as all-knowing [livejournal.com profile] madbard,

What's a good way to handle nested header file dependencies in a makefile? I'm in a situation where I need to compile (as a standalone executable) a small piece of a much larger piece of software, and there is a large src/include directory with many subdirectories. The source I need to compile #includes things in src/include and some of the subdirectories, and some of those headers in the subdirectories #include headers in other subdirectories, and of course those #include directives are relative (presumably to something specified in Makefile.global, but I'm not entirely clear on how) and so gcc complains that it can't find the correct headers.

If it was just a matter of dependencies that compile to object code and then get linked to each other, that wouldn't be an issue, but these are all headers. I can get it to compile if I dump all the relevant header files to one directory and then strip out the paths, but that's ugly. Please, LJ Genie, show me a better way!

Also, how can I keep my cat from having such bad catfood breath?

Profile

maradydd: (Default)
maradydd

September 2010

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26 27282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags