how can i force automake to generate dependency tracking for nonstandard C++ suffix files?
in particular I mean generating .deps directory file content.
I am using libtool as well.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look at this section in the automake manual regarading default
_SOURCES. It looks like saying:will get you past the first step. So, now automake knows where to look for the first dependency (
target.foo), and it will ask GCC to compute the dependencies oftarget.foobased upon the header file names that are included in that file. GCC spits out the inferred object names, transforming the includedstem.h -> stem.o. And here’s where I hit a wall. To have your automake script be completely portable, you cannot use the%patterns. You must use the suffix stacking, as wallyk demonstrated in his answer.Depending upon your portability requirements, you could just ignore that and define the implicit rule in Makefile.in to be something like:
If portability is a strict requirement I’m afraid you’re out of luck without a lot of hacking.