Link to home
Start Free TrialLog in
Avatar of mahh
mahh

asked on

create header file dependencies in make file

How can I create header file dependencies in make file so that it will be portable in all platforms.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mahh
mahh

ASKER

Please explain in detail about how to do that in unix platforms. It will be helpful if you can explain in AIX version.
Well, i don't know AIX, but the above works on Linux, HP-UX, SCO _and_ NT...
Avatar of mahh

ASKER

Your reply is actually good but I did not really understand the steps you have mentioned. Can you explain by giving examples. Also tell me whether any websites I can look to get a clear understanding.
Thanks for your valuable help.
Well, the 'include .depend' directive simply instructs 'make' to evaluate a file called '.depend', that was previously created by running 'make depend' on the current target... I'll see if i can point you to some web sites.
Avatar of mahh

ASKER

Please help me to point to web sites and I still did not understand the answer you provided. I had given the points for not dissapointing you.