Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a makefile(Clearmake Makefile) and I have a target processor compiler for cross-compiling. One of the problems here is that I can not use GCC because I do not want to introduce another tool. So, in order to implement an incremental build, I had to use target processor option to generate the dependency file which will capture all the dependent file information to build the .o file and I was able to generate the same(i.e., a .d file). Now, I want to use this file(i.e., .d) to do my incremental build.
Tried referring GCC makefile options -MD and -MP and I was able to successfully understand the process. But, I was not able to implement the same using Clearlake with a dependent file generated by a target processor compiler.
clearmake can do it by itself and much better than gcc will ever be able. These are called derived objects (and also you may check about wink-in). These are not the depend files (which are generated by gcc) and which are not really required if you use the full power of clearmake.
If you use a pure clearmake environment (= a view) clearmake will automatically handle it and you do not need to take care about it at all (= you do not need those depend files or anything similar).
ok. So the best solution would be to create derived objects (instead of view private files).
But if you don't want to do that you have still several possibilities:
1. go with gcc (gcc is not a make, but a c compiler). You need to use a compiler anyway (by the way which one do you use?)
2. use cpp instead of gcc, but probably it is just the same issue.
3. analyse c files as text files and process includes. You need to implement a script to collect the dependencies (although you may try to find it on the net).
4. use strace or similar low level tool to collect and produce that list. This solution may work with other targets too. Also requires a new script.
The problem is that I do not want to create derived objects because I have few files which are completely view private files. I am using the Windriver compiler option to generate the .d files. Now, how can I make use of these .d files to do an incremental build?
The problem is that I do not want to create derived objects because I have few files which are completely view private files. I am using the Windriver compiler option to generate the .d files. Now, how can I make use of these .d files to do an incremental build?
You modify your makefile accordingly. After working with this setup for over a year now, you should be familiar with how to make those modifications.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.