Alec the Geek

or “My big fat geek’s blogging”

An easier way to calculate C source dependencies

Those who follow the single makefile approach outlined by Peter Miller in his excellent paper Recursive Make Considered Harmful may be interested in the -MT option to the GCC preprocessor, introduced after Peter wrote the paper.

This switch allows the target name to be explicitly defined, multiple times if required, instead of being derived from the source file name. An sample command to be inserted into the makefile (instead of using depend.sh in Peter’s example) is

$(CC) $(CFLAGS) -MM -MG -MT $(OBJ_DIR)/$(*).o -MT $(DEP_DIR)/$(*).d -MF $@ $<

Notice that I keep my dynamic dependency files in a separate directory to the source code.

powered by performancing firefox

22 November 2006 Posted by Alec | Software Development | | No Comments

OSS is now cheaper as well

This article reports that on low to medium size applicationso OSS databases can be perhaps twice as cost affective as their commercial brethren. There a breif mention of where the current OSS offerings as lacking (system management, XML support).

Considering how complex a modern RDBMS is then this is still considerable eachievment. I look forward to commercial applications, such as Serena Dimensions, being shipped on an OSS database in the future

22 November 2006 Posted by Alec | Open Source Software | | No Comments