Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Question about managed make

On Mon, Oct 26, 2009 at 11:25 PM, Keith Prussing <kprussing74@xxxxxxxxx> wrote:
> Is there a way to get the managed make system to build the files in a non-alphabetical order? I have been trying to learn how to work with modules and I have found that if the module name is alphabetically later than the main program file, the managed make system will not build the module before trying to build the main executable. I have found a work around by not stopping on the first build error, but that requires me to build the project twice to get any updates to the module and I was hoping for a more streamlined method.
>
> I was also wondering if there was a way to set Photran to run ar.exe to make libraries. I have been playing with various settings, but I haven't been able to find a way to make that work.
>
> Any suggestions?

I have a very low opinion of managed make, and my suggestion is to not
use it.  Write your own make files.  It is not that hard to learn
make.

Managed make was part of CDT, and some people at Intel hacked on it to
make it work for Photran.  Nobody at Illinois has ever paid much
attention to it.  Our test programs are big systems that have complex
makefiles.  Managed make is not part of our research agenda, and I do
not think it will be important to our main target audience, which is
people programming supercomputers.  I know a lot of people like it.  I
understand the desire to avoid hacking makefiles, because they are
ugly.

Managed make is ok for HelloWorld, but once you start to do something
complicated, you should write your own makefile.

If someone wants to create a robust and powerful managed make, I would
not want to discourage you.  If you succeed, I will even change my
advice

-Ralph Johnson


Back to the top