Board index » cppbuilder » Re: Comments on web pages please
Ed Mulroy [TeamB]
CBuilder Developer |
Ed Mulroy [TeamB]
CBuilder Developer |
Re: Comments on web pages please2004-12-08 02:47:26 AM cppbuilder62 Quote... But as long as many makefiles in the QuoteChris Uzdavinis wrote in message |
Ed Mulroy [TeamB]
CBuilder Developer |
2004-12-08 02:49:18 AM
Re:Re: Comments on web pages pleaseQuote... My makefiles use `sed' for automatic dependency . Ed QuoteOscar Fuentes wrote in message |
Oscar Fuentes
CBuilder Developer |
2004-12-08 03:07:54 AM
Re:Re: Comments on web pages please
"Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >writes:
Quote>... My makefiles use `sed' for automatic dependency is a good thing if you are a Borland-only shop, but not good for those of us interested on working with multiple compilers and platforms. Thanks to GNU `make', `sed' and a set of compilers that emits dependency information as text files (they all do except Borland's), a single makefile supports lots of compilers and file production tools in general, on 4 platforms. -- Oscar {smallsort} |
Chris Uzdavinis
CBuilder Developer |
2004-12-08 03:42:27 AM
Re:Re: Comments on web pages please
Oscar Fuentes < XXXX@XXXXX.COM >writes:
Quote>It's ugly, hard to read, easy to get wrong, unintuitive, cryptic, and as adding a suffix to a list of base filenames: $(addsuffix .cpp,$(ENUM_FILES)) It's hard in standard make without launching external tools. Quote>sed is a particuarly common tool that people use in makefiles. Maybe QuoteThe Windows mentality is about "a program for each application" and for the programmer hard. Further, it's easier to port/install one application (gmake) to a new platform than it is to port/install a streamlined version of make that needs to fork out work to a handful of other applications. -- Chris (TeamB); |
Ed Mulroy [TeamB]
CBuilder Developer |
2004-12-08 03:45:17 AM
Re:Re: Comments on web pages please
You are correct. My comment referred to using Borland's tools.
(after all, describing them is the whole reason I started this thread!), and did not refer to cross-platform and cross-tool use. If using Borland's command line tools then .autodepend causes make to read the dependencies from the comment records in the object file. Therefore header file dependencies need not be listed in the make file rules. . Ed QuoteOscar Fuentes wrote in message |
Chris Uzdavinis
CBuilder Developer |
2004-12-08 03:51:42 AM
Re:Re: Comments on web pages please
"Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >writes:
Quote>... But as long as many makefiles in the informration, etc. With generated code (like C++ generated from CORBA .idl files), the .idl file has a different filename than the files that are generated (not just file extensions): foo.idl may be generated into files fooC.hpp fooC.cpp fooS.hpp fooS.cpp Or other extensions, since different idl compilers generate different names. We use TAO, which is configurable, and we have it append _Clnt and _Srvr to our files. One goal in writing makefiles is to never duplicate information, so filenames should only appear once, and the makefile should calculate the various extensions and pre/suffixes that need to be added in special situations. That way when you change your filename or add new rules, nothing ever gets out of synch (because it's hard enough to debug makefiles as is.) A lot of this is done by having makefile "templates" that you include in your makefile. That makes it easy to write your own makefile by offloading most of the "real" logic into the template code that's included. That's where the power tools get used most. -- Chris (TeamB); |
Chris Uzdavinis
CBuilder Developer |
2004-12-08 03:56:03 AM
Re:Re: Comments on web pages please
"Ed Mulroy [TeamB]" < XXXX@XXXXX.COM >writes:
QuoteYou are correct. My comment referred to using Borland's tools. Chris (TeamB); |
Oscar Fuentes
CBuilder Developer |
2004-12-08 04:27:36 AM
Re:Re: Comments on web pages please
Chris Uzdavinis (TeamB) < XXXX@XXXXX.COM >writes:
[snip] QuoteStill, there's something to be said about a programming language (like successful at convincing people that all those extra things are really necessary, though :-) Seriously, a declarative programming languages needs a solid understanding and previous planning if one pretends to use it succesfully. `make' is not different here. Once understood, it is not so complex. But lots of people tries to write makefiles with the mindset of a C programmer writing a simple and isolated procedure, so it is not surprising that the result sucks. QuoteFurther, it's easier to port/install one application (gmake) to a new consider using `make' where `gmake' is available. -- Oscar |
Ed Mulroy [TeamB]
CBuilder Developer |
2004-12-08 05:11:09 AM
Re:Re: Comments on web pages pleaseQuoteIs .autodepend a standard make notation? :) Note that in the part of my message that you quoted I specified that it was for Borland's tools. . Ed QuoteChris Uzdavinis wrote in message |
Jogy
CBuilder Developer |
2004-12-11 12:44:35 AM
Re:Re: Comments on web pages please
Ed Mulroy [TeamB] wrote:
QuoteI have put together the first three of a set of pages I think they will be useful for the people trying to use the free compiler. I think you can also add some information about the BRC32 and BRCC32 tools, and working with .rc files in general - it will be useful for Windows GUI programming. Jogy |
Ed Mulroy [TeamB]
CBuilder Developer |
2004-12-11 05:54:06 AM
Re:Re: Comments on web pages please
Thanks for the kind words Jogy.
I intend to go into using the resource compiler, but have not gotten there yet. There are many more pages now than when I first posted the message. They are linked to by the "Using Borland Command Line Tools" link on my Borland page: www.mulroy.org/borland.htm The pages there now are Installation, First Use Multi-File Programs Static Libaries Static Linked and Dynamic Linked Make files (4 pages, soon to be 5 or more) Create and Use a DLL The initial thrust is to focus on how to use the tools. While a touch of programming is shown, it is only in the context of illustrating the use of a tool. I have deliberately used only simple programming examples. After I have written about each of the tools, do you think it appropriate to put in some real programming examples? (still not very complex ones, but ones that do a real task) . Ed QuoteJogy wrote in message |
Hendrik Schober
CBuilder Developer |
2004-12-14 08:59:16 AM
Re:Re: Comments on web pages please
Ed Mulroy [TeamB] < XXXX@XXXXX.COM >wrote:
Quote>(You still owe me comments on an article.) Quote. Ed XXXX@XXXXX.COM is never read I'm Schobi at suespammers dot org "The presence of those seeking the truth is infinitely to be prefered to those thinking they've found it." Terry Pratchett |